Struct exocore_transport::Libp2pTransport[][src]

pub struct Libp2pTransport { /* fields omitted */ }
Expand description

Libp2p transport used by all services of Exocore through handles. There is one handle per cell per service.

The transport itself is scheduled on an Executor, and its future will complete as soon it’s ready. Once all handles are dropped, all its scheduled tasks will be stopped too.

Implementations

Creates a new transport for given node and config. The node is important here since all messages are authenticated using the node’s private key thanks to secio.

Creates sink and streams that can be used for a given service of a cell.

Runs the transport to completion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

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.

Should always be Self

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more