pub struct RawRequest<'target, 'req> { /* private fields */ }
Expand description

The raw request.

This structure essentially acts as a monomorphization of the Request trait. It contains all of the information needed to send the request, such as the raw bytes, whether it has a reply, and the name of the extension.

Implementations

Create a new RawRequest from its raw parts.

Panics

Panics if:

  • There are less than three slices.
  • The third slice is not at least four bytes long.

Get the variant of the request.

Once the RawRequest is finished, this function will return the parts that can be sent over the wire.

Compute the length of this request.

Panics
  • If this function was already called on this request.

The extension name for the opcode.

Get the total amount of data.

Tell whether this request is empty.

Get the parts of this data that will be sent over the wire.

Advance this request by the given number of bytes.

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