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