pub struct Stream(_);
Expand description

Wrapper type around TCP stream for implementing FTCP-specific traits

Trait Implementations

First separable type (like reader)

Second separable type (like writer)

Reconstruct the type from the halves

Split the type into two

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Receive a single frame of data structured as a byte string. The frame contains LNP framing prefix, which is used by upstream session-level protocols. Read more

Try to receive len number of bytes and pack them as a frame. The actual amount of bytes received may differ for some protocols, like ZMQ, so the function should be used with caution! Read more

Receive frame like with RecvFrame::recv_frame, but only originating from the specified remote address. Read more

Sends a single frame of data structured as a byte string. The frame must already contain LNP framing prefix with size data. The function must check that the provided data frame length is below the limit defined with MAX_FRAME_SIZE constant. Read more

Sends a single frame of data structured as a byte string. The frame must already contain LNP framing prefix with size data. Read more

Sends a single frame of data structured as a byte string to a specific receiver with remote_id. Function works like RecvFrame::recv_frame and is used for the underlying protocols supporting multipeer connectivity. The frame must already contain LNP framing prefix with size data. The function must check that the provided data frame length is below the limit defined with MAX_FRAME_SIZE constant. 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.

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.