pub struct SendmsgConnection { /* private fields */ }
Expand description

A variant of the UnixStream connection that uses sendmsg to send data and recvmsg to receive it.

The main difference between this type and StdConnection<UnixStream> is that this type supports file descriptor passing. This is useful for extensions that require file descriptor passing.

Implementations

Create a new connection from a UnixStream.

Convert this object back into a UnixStream.

Trait Implementations

Converts this type into a mutable reference of the (usually inferred) input type.

Extracts the raw file descriptor. Read more

Converts this type into a shared reference of the (usually inferred) input type.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Write a series of I/O slices and a series of file descriptors to the X11 server. Read more

Write a series of I/O slices to the X11 server. Read more

Write a slice of data to the X11 server. Read more

Read data to a series of I/O slices and a buffer for file descriptors. Read more

Read data for a single I/O slice. Read more

Flush all data in this connection’s buffer. Read more

Receive data from the X11 server into a set of I/O slices, in a non-blocking manner. Read more

Shutdown this connection. Read more

Read data to a single I/O slice and a buffer for file descriptors. Read more

Receive data from the X11 server into a single slice, in a non-blocking manner. Read more

Write a series of I/O slices and a series of file descriptors to the X11 server. Read more

Write a series of I/O slices to the X11 server. Read more

Write a slice of data to the X11 server. Read more

Read data to a series of I/O slices and a buffer for file descriptors. Read more

Read data for a single I/O slice. Read more

Flush all data in this connection’s buffer. Read more

Receive data from the X11 server into a set of I/O slices, in a non-blocking manner. Read more

Shutdown this connection. Read more

Read data to a single I/O slice and a buffer for file descriptors. Read more

Receive data from the X11 server into a single slice, in a non-blocking manner. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

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.

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

Calls U::from(self).

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

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