[−][src]Struct libp2p_gossipsub::GossipsubConfigBuilder
Implementations
impl GossipsubConfigBuilder
[src]
pub fn new() -> GossipsubConfigBuilder
[src]
pub fn protocol_id(
&mut self,
protocol_id: impl Into<Cow<'static, [u8]>>
) -> &mut Self
[src]
&mut self,
protocol_id: impl Into<Cow<'static, [u8]>>
) -> &mut Self
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]
&mut self,
heartbeat_initial_delay: Duration
) -> &mut Self
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]
&mut self,
id_fn: fn(_: &GossipsubMessage) -> MessageId
) -> &mut Self
pub fn build(&self) -> GossipsubConfig
[src]
Trait Implementations
impl Default for GossipsubConfigBuilder
[src]
fn default() -> GossipsubConfigBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for GossipsubConfigBuilder
impl Send for GossipsubConfigBuilder
impl Sync for GossipsubConfigBuilder
impl Unpin for GossipsubConfigBuilder
impl UnwindSafe for GossipsubConfigBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,