Struct amq_protocol_tcp::TcpStreamWrapper[][src]

pub struct TcpStreamWrapper(_);
Expand description

Unsafe wrapper “Cloning” the TcpStream but not closing it on drop.

Implementations

Clone the TcpStream. Original one needs to last at least for the same lifetime.

Methods from Deref<Target = TcpStream>

Check whether the stream is connected or not

Retry the connection. Returns:

  • Ok(true) if connected
  • Ok(false) if connecting
  • Err(_) if an error is encountered

Attempt reading from underlying stream, returning Ok(()) if the stream is readable

Attempt writing to underlying stream, returning Ok(()) if the stream is writable

Trait Implementations

Extracts the underlying raw socket from this object.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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.

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.