Struct libp2p_floodsub::protocol::FloodsubSubscription
source · [−]pub struct FloodsubSubscription {
pub action: FloodsubSubscriptionAction,
pub topic: Topic,
}
Expand description
A subscription received by the floodsub system.
Fields
action: FloodsubSubscriptionAction
Action to perform.
topic: Topic
The topic from which to subscribe or unsubscribe.
Trait Implementations
sourceimpl Clone for FloodsubSubscription
impl Clone for FloodsubSubscription
sourcefn clone(&self) -> FloodsubSubscription
fn clone(&self) -> FloodsubSubscription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FloodsubSubscription
impl Debug for FloodsubSubscription
sourceimpl Hash for FloodsubSubscription
impl Hash for FloodsubSubscription
sourceimpl PartialEq<FloodsubSubscription> for FloodsubSubscription
impl PartialEq<FloodsubSubscription> for FloodsubSubscription
sourcefn eq(&self, other: &FloodsubSubscription) -> bool
fn eq(&self, other: &FloodsubSubscription) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FloodsubSubscription) -> bool
fn ne(&self, other: &FloodsubSubscription) -> bool
This method tests for !=
.
impl Eq for FloodsubSubscription
impl StructuralEq for FloodsubSubscription
impl StructuralPartialEq for FloodsubSubscription
Auto Trait Implementations
impl RefUnwindSafe for FloodsubSubscription
impl Send for FloodsubSubscription
impl Sync for FloodsubSubscription
impl Unpin for FloodsubSubscription
impl UnwindSafe for FloodsubSubscription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more