Enum rustun::rfc5389::Attribute [] [src]

pub enum Attribute {
    MappedAddress(MappedAddress),
    Username(Username),
    MessageIntegrity(MessageIntegrity),
    ErrorCode(ErrorCode),
    UnknownAttributes(UnknownAttributes),
    Realm(Realm),
    Nonce(Nonce),
    XorMappedAddress(XorMappedAddress),
    Software(Software),
    AlternateServer(AlternateServer),
    Fingerprint(Fingerprint),
    Other(RawAttribute),
}

Attribute set that are defined in RFC 5389.

Variants

Trait Implementations

impl Debug for Attribute
[src]

Formats the value using the given formatter.

impl Clone for Attribute
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<MappedAddress> for Attribute
[src]

Performs the conversion.

impl From<Username> for Attribute
[src]

Performs the conversion.

impl From<MessageIntegrity> for Attribute
[src]

Performs the conversion.

impl From<ErrorCode> for Attribute
[src]

Performs the conversion.

impl From<UnknownAttributes> for Attribute
[src]

Performs the conversion.

impl From<Realm> for Attribute
[src]

Performs the conversion.

impl From<Nonce> for Attribute
[src]

Performs the conversion.

impl From<XorMappedAddress> for Attribute
[src]

Performs the conversion.

impl From<Software> for Attribute
[src]

Performs the conversion.

impl From<AlternateServer> for Attribute
[src]

Performs the conversion.

impl From<Fingerprint> for Attribute
[src]

Performs the conversion.

impl TryAsRef<MappedAddress> for Attribute
[src]

Performs the conversion.

impl TryAsRef<Username> for Attribute
[src]

Performs the conversion.

impl TryAsRef<MessageIntegrity> for Attribute
[src]

Performs the conversion.

impl TryAsRef<ErrorCode> for Attribute
[src]

Performs the conversion.

impl TryAsRef<UnknownAttributes> for Attribute
[src]

Performs the conversion.

impl TryAsRef<Realm> for Attribute
[src]

Performs the conversion.

impl TryAsRef<Nonce> for Attribute
[src]

Performs the conversion.

impl TryAsRef<XorMappedAddress> for Attribute
[src]

Performs the conversion.

impl TryAsRef<Software> for Attribute
[src]

Performs the conversion.

impl TryAsRef<AlternateServer> for Attribute
[src]

Performs the conversion.

impl TryAsRef<Fingerprint> for Attribute
[src]

Performs the conversion.

impl Attribute for Attribute
[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