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 more