Struct rust_ipfs::p2p::PubsubConfig
source · pub struct PubsubConfig {
pub custom_protocol_id: Option<String>,
pub max_transmit_size: usize,
pub floodsub_compat: bool,
pub validate: PubsubValidation,
}
Fields§
§custom_protocol_id: Option<String>
Custom protocol name
max_transmit_size: usize
Max size that can be transmitted over gossipsub
floodsub_compat: bool
Floodsub compatibility
validate: PubsubValidation
Validation
Trait Implementations§
source§impl Clone for PubsubConfig
impl Clone for PubsubConfig
source§fn clone(&self) -> PubsubConfig
fn clone(&self) -> PubsubConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PubsubConfig
impl Debug for PubsubConfig
source§impl Default for PubsubConfig
impl Default for PubsubConfig
source§impl PartialEq for PubsubConfig
impl PartialEq for PubsubConfig
source§fn eq(&self, other: &PubsubConfig) -> bool
fn eq(&self, other: &PubsubConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PubsubConfig
impl StructuralEq for PubsubConfig
impl StructuralPartialEq for PubsubConfig
Auto Trait Implementations§
impl RefUnwindSafe for PubsubConfig
impl Send for PubsubConfig
impl Sync for PubsubConfig
impl Unpin for PubsubConfig
impl UnwindSafe for PubsubConfig
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.