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.
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
Auto Trait Implementations
impl !RefUnwindSafe for Mesh
impl !UnwindSafe for Mesh
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
pub fn vzip(self) -> V
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