pub enum LlmpConnection<SP> where
    SP: ShMemProvider + 'static, 
{ IsBroker { broker: LlmpBroker<SP>, }, IsClient { client: LlmpClient<SP>, }, }
Expand description

An Llmp instance

Variants

IsBroker

Fields

broker: LlmpBroker<SP>

A broker and a thread using this tcp background thread

IsClient

Fields

client: LlmpClient<SP>

A client, connected to the port

Implementations

Creates either a broker, if the tcp port is not bound, or a client, connected to this port.

Creates a new broker on the given port

Creates a new client on the given port

Describe this in a reproducable fashion, if it’s a client

Recreate an existing client from the stored description

Sends the given buffer over this connection, no matter if client or broker.

Send the buf with given flags.

Trait Implementations

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

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.