Struct rustun::message::Request [] [src]

pub struct Request<M, A> { /* fields omitted */ }

Request message.

Methods

impl<M, A> Request<M, A> where
    M: Method,
    A: Attribute
[src]

Makes a new request message.

Adds attribute to the tail of the attributes of this message.

Adds attribute to the tail of the attributes of this message.

Returns the method of this message.

Returns the transaction ID of this message.

Returns the attributes of this message.

Converts into a success response message.

Converts into an error response message.

Trait Implementations

impl<M: Debug, A: Debug> Debug for Request<M, A>
[src]

Formats the value using the given formatter.

impl<M: Clone, A: Clone> Clone for Request<M, A>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<M: Method, A: Attribute> Message for Request<M, A>
[src]

STUN method type of this implementation.

STUN attribute type of this implementation.

Returns the class of this message.

Returns the method of this message.

Returns the transaction ID of this message.

Returns the attributes of this message.

Returns the reference to the specified attribute if it exists in the attributes of this method. Read more

Tries to convert to RawMessage.