Enum ipfs_embed::Event
source · [−]pub enum Event {
Show 19 variants
NewListener(ListenerId),
NewListenAddr(ListenerId, Multiaddr),
ExpiredListenAddr(ListenerId, Multiaddr),
ListenerError(ListenerId, String),
ListenerClosed(ListenerId),
NewExternalAddr(Multiaddr),
ExpiredExternalAddr(Multiaddr),
Discovered(PeerId),
DialFailure(PeerId, Multiaddr, String),
Unreachable(PeerId),
ConnectionEstablished(PeerId, ConnectedPoint),
ConnectionClosed(PeerId, ConnectedPoint),
AddressChanged(PeerId, ConnectedPoint, ConnectedPoint),
Connected(PeerId),
Disconnected(PeerId),
Subscribed(PeerId, String),
Unsubscribed(PeerId, String),
Bootstrapped,
NewInfo(PeerId),
}
Variants
NewListener(ListenerId)
a new listener has been created
NewListenAddr(ListenerId, Multiaddr)
the given listener started listening on this address
ExpiredListenAddr(ListenerId, Multiaddr)
the given listener stopped listening on this address
ListenerError(ListenerId, String)
the given listener experienced an error
ListenerClosed(ListenerId)
the given listener was closed
NewExternalAddr(Multiaddr)
we received an observed address for ourselves from a peer
ExpiredExternalAddr(Multiaddr)
an address observed earlier for ourselves has been retired since it was not refreshed
Discovered(PeerId)
an address was added for the given peer, following a successful dailling attempt
DialFailure(PeerId, Multiaddr, String)
a dialling attempt for the given peer has failed
Unreachable(PeerId)
a peer could not be reached by any known address
ConnectionEstablished(PeerId, ConnectedPoint)
a new connection has been opened to the given peer
ConnectionClosed(PeerId, ConnectedPoint)
a connection to the given peer has been closed
AddressChanged(PeerId, ConnectedPoint, ConnectedPoint)
the given peer signaled that its address has changed
Connected(PeerId)
we are now connected to the given peer
Disconnected(PeerId)
the last connection to the given peer has been closed
Subscribed(PeerId, String)
the given peer subscribed to the given gossipsub or broadcast topic
Unsubscribed(PeerId, String)
the given peer unsubscribed from the given gossipsub or broadcast topic
Bootstrapped
NewInfo(PeerId)
the peer-info for the given peer has been updated with new information
Trait Implementations
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more