Struct rustun::message::Request

source ·
pub struct Request<A>(_);
Expand description

Request message.

Implementations§

Makes a new request message.

Converts Message to Request.

Errors

If the class of the given message is not MessageClass::Request, this function will return a MessageErrorKind::InvalidInput error.

And if the message contains some unknown comprehension-required attributes, this function will return a MessageErrorKind::UnknownAttributes error.

Returns the method of the message.

Returns the transaction ID of the message.

Returns a reference to the first occurance of T attribute in the attributes of the message.

If there is no such attribute, this method will return None.

Returns an iterator that iterates over the known attributes in the message.

Adds the given attribute to the tail of the attributes in the message.

Takes ownership of this instance, and returns the internal message.

Trait Implementations§

Converts this type into a mutable reference of the (usually inferred) input type.
Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
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 type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.