pub struct PubSubMaxSizePerTopic {
pub consensus: Option<usize>,
pub proposal_parts: Option<usize>,
pub liveness: Option<usize>,
}Expand description
This structure contains optional application-payload limits for GossipSub topics.
Malachite adds signed-message overhead when it sets the corresponding wire limit. Topics without
a per-topic limit use the global wire limit in Config::pubsub_max_size. Value sync always uses
the Broadcast protocol, so it has no per-topic GossipSub limit.
Fields§
§consensus: Option<usize>§proposal_parts: Option<usize>§liveness: Option<usize>Trait Implementations§
Source§impl Clone for PubSubMaxSizePerTopic
impl Clone for PubSubMaxSizePerTopic
impl Copy for PubSubMaxSizePerTopic
Source§impl Debug for PubSubMaxSizePerTopic
impl Debug for PubSubMaxSizePerTopic
Source§impl Default for PubSubMaxSizePerTopic
impl Default for PubSubMaxSizePerTopic
impl Eq for PubSubMaxSizePerTopic
Source§impl PartialEq for PubSubMaxSizePerTopic
impl PartialEq for PubSubMaxSizePerTopic
impl StructuralPartialEq for PubSubMaxSizePerTopic
Auto Trait Implementations§
impl Freeze for PubSubMaxSizePerTopic
impl RefUnwindSafe for PubSubMaxSizePerTopic
impl Send for PubSubMaxSizePerTopic
impl Sync for PubSubMaxSizePerTopic
impl Unpin for PubSubMaxSizePerTopic
impl UnsafeUnpin for PubSubMaxSizePerTopic
impl UnwindSafe for PubSubMaxSizePerTopic
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more