[][src]Struct libp2p_gossipsub::GossipsubConfigBuilder

pub struct GossipsubConfigBuilder { /* fields omitted */ }

Methods

impl GossipsubConfigBuilder[src]

pub fn new() -> GossipsubConfigBuilder[src]

pub fn protocol_id(
    &mut self,
    protocol_id: impl Into<Cow<'static, [u8]>>
) -> &mut Self
[src]

pub fn history_length(&mut self, history_length: usize) -> &mut Self[src]

pub fn history_gossip(&mut self, history_gossip: usize) -> &mut Self[src]

pub fn mesh_n(&mut self, mesh_n: usize) -> &mut Self[src]

pub fn mesh_n_low(&mut self, mesh_n_low: usize) -> &mut Self[src]

pub fn mesh_n_high(&mut self, mesh_n_high: usize) -> &mut Self[src]

pub fn gossip_lazy(&mut self, gossip_lazy: usize) -> &mut Self[src]

pub fn heartbeat_initial_delay(
    &mut self,
    heartbeat_initial_delay: Duration
) -> &mut Self
[src]

pub fn heartbeat_interval(&mut self, heartbeat_interval: Duration) -> &mut Self[src]

pub fn fanout_ttl(&mut self, fanout_ttl: Duration) -> &mut Self[src]

pub fn max_transmit_size(&mut self, max_transmit_size: usize) -> &mut Self[src]

pub fn hash_topics(&mut self) -> &mut Self[src]

pub fn no_source_id(&mut self) -> &mut Self[src]

pub fn manual_propagation(&mut self) -> &mut Self[src]

pub fn message_id_fn(
    &mut self,
    id_fn: fn(_: &GossipsubMessage) -> MessageId
) -> &mut Self
[src]

pub fn build(&self) -> GossipsubConfig[src]

Trait Implementations

impl Default for GossipsubConfigBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,