Struct splinter::mesh::Mesh[][src]

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

A Connection reactor

Implementations

Create a new mesh, spawning a background thread for sending and receiving, and setting up channels to communicate with it.

Add a new connection to the mesh, moving it to the background thread, and add the returned mesh id to the unique_ids map

Remove an existing connection from the mesh and return it.

Send the envelope on the mesh.

This is a convenience function and is equivalent to mesh.outgoing(envelope.id()).send(Vec::from(envelope)).

Receive a new envelope from the mesh.

Receive a new envelope from the mesh.

Creates a MeshLifeCycle that can be used to add and remove connection from this Mesh

Creates a MeshMatrixSender that can be used to send messages over through this Mesh

Creates a MeshMatrixReceiver that can be used to receives message from this Mesh

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Instructs the component to begin shutting down. Read more

Waits until the the component has completely shutdown. Read more

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

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.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. 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.

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