Enum ipfs_embed::Event[][src]

pub enum Event {
Show 14 variants NewListener(ListenerId), NewListenAddr(ListenerId, Multiaddr), ExpiredListenAddr(ListenerId, Multiaddr), ListenerClosed(ListenerId), NewExternalAddr(Multiaddr), ExpiredExternalAddr(Multiaddr), Discovered(PeerId), Unreachable(PeerId), Connected(PeerId), Disconnected(PeerId), Subscribed(PeerId, String), Unsubscribed(PeerId, String), NewHead(Head), Bootstrapped,
}

Variants

NewListener

Tuple Fields of NewListener

0: ListenerId
NewListenAddr

Tuple Fields of NewListenAddr

0: ListenerId1: Multiaddr
ExpiredListenAddr

Tuple Fields of ExpiredListenAddr

0: ListenerId1: Multiaddr
ListenerClosed

Tuple Fields of ListenerClosed

0: ListenerId
NewExternalAddr

Tuple Fields of NewExternalAddr

0: Multiaddr
ExpiredExternalAddr

Tuple Fields of ExpiredExternalAddr

0: Multiaddr
Discovered

Tuple Fields of Discovered

0: PeerId
Unreachable

Tuple Fields of Unreachable

0: PeerId
Connected

Tuple Fields of Connected

0: PeerId
Disconnected

Tuple Fields of Disconnected

0: PeerId
Subscribed

Tuple Fields of Subscribed

0: PeerId1: String
Unsubscribed

Tuple Fields of Unsubscribed

0: PeerId1: String
NewHead

Tuple Fields of NewHead

0: Head
Bootstrapped

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type for metadata in pointers and references to Self.

Scrape the references from an impl Read. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.