Struct rustun::rfc5389::attributes::ErrorCode [] [src]

pub struct ErrorCode { /* fields omitted */ }

ERROR-CODE attribute.

See RFC 5389 -- 15.6. ERROR-CODE about this attribute.

Methods

impl ErrorCode
[src]

Makes a new ErrorCode instance.

Note that the value of code must be in range of 300..600. If the value is out-of-range this will return None.

Returns the code of this error.

Returns the reason phrase of this error.

Trait Implementations

impl Debug for ErrorCode
[src]

Formats the value using the given formatter.

impl Clone for ErrorCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ErrorCode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ErrorCode
[src]

impl Hash for ErrorCode
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Attribute for ErrorCode
[src]

Returns the attribute type of this instance.

Tries to convert from RawAttribute. Read more

Tries to encode the value of this attribute to bytes.

Tries to convert to RawAttribute. Read more

impl From<TryAlternate> for ErrorCode
[src]

Performs the conversion.

impl From<BadRequest> for ErrorCode
[src]

Performs the conversion.

impl From<Unauthorized> for ErrorCode
[src]

Performs the conversion.

impl From<UnknownAttribute> for ErrorCode
[src]

Performs the conversion.

impl From<StaleNonce> for ErrorCode
[src]

Performs the conversion.

impl From<ServerError> for ErrorCode
[src]

Performs the conversion.

impl From<ErrorKind> for ErrorCode
[src]

Performs the conversion.