pub struct Builder { /* private fields */ }
Available on crate feature
net
only.Expand description
Builder to configure and construct Gossip
.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn max_message_size(self, size: usize) -> Self
pub fn max_message_size(self, size: usize) -> Self
Sets the maximum message size in bytes.
By default this is 4096
bytes.
Sourcepub fn membership_config(self, config: HyparviewConfig) -> Self
pub fn membership_config(self, config: HyparviewConfig) -> Self
Set the membership configuration.
Sourcepub fn broadcast_config(self, config: PlumtreeConfig) -> Self
pub fn broadcast_config(self, config: PlumtreeConfig) -> Self
Set the broadcast configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more