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]

[src]

Makes a new request message.

[src]

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

[src]

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

[src]

Returns the method of this message.

[src]

Returns the transaction ID of this message.

[src]

Returns the attributes of this message.

[src]

Converts into a success response message.

[src]

Converts into an error response message.

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

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.

[src]

Returns the class of this message.

[src]

Returns the method of this message.

[src]

Returns the transaction ID of this message.

[src]

Returns the attributes of this message.

[src]

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

[src]

Tries to convert to RawMessage.