Struct libp2p_swarm::behaviour::ListenerClosed
source · pub struct ListenerClosed<'a> {
pub listener_id: ListenerId,
pub reason: Result<(), &'a Error>,
}
Expand description
FromSwarm
variant that informs the behaviour that a listener closed.
Fields§
§listener_id: ListenerId
§reason: Result<(), &'a Error>
Trait Implementations§
source§impl<'a> Clone for ListenerClosed<'a>
impl<'a> Clone for ListenerClosed<'a>
source§fn clone(&self) -> ListenerClosed<'a>
fn clone(&self) -> ListenerClosed<'a>
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