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§
source§impl Clone for FloodsubSubscription
impl Clone for FloodsubSubscription
source§fn clone(&self) -> FloodsubSubscription
fn clone(&self) -> FloodsubSubscription
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 FloodsubSubscription
impl Debug for FloodsubSubscription
source§impl Hash for FloodsubSubscription
impl Hash for FloodsubSubscription
source§impl PartialEq<FloodsubSubscription> for FloodsubSubscription
impl PartialEq<FloodsubSubscription> for FloodsubSubscription
source§fn 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 ==
.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§
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