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
MappedAddress(MappedAddress)
Username(Username)
MessageIntegrity(MessageIntegrity)
ErrorCode(ErrorCode)
UnknownAttributes(UnknownAttributes)
Realm(Realm)
Nonce(Nonce)
XorMappedAddress(XorMappedAddress)
Software(Software)
AlternateServer(AlternateServer)
Fingerprint(Fingerprint)
Other(RawAttribute)
Trait Implementations
impl Debug for Attribute
[src]
impl Clone for Attribute
[src]
fn clone(&self) -> Attribute
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl From<MappedAddress> for Attribute
[src]
fn from(f: MappedAddress) -> Self
Performs the conversion.
impl From<Username> for Attribute
[src]
impl From<MessageIntegrity> for Attribute
[src]
fn from(f: MessageIntegrity) -> Self
Performs the conversion.
impl From<ErrorCode> for Attribute
[src]
impl From<UnknownAttributes> for Attribute
[src]
fn from(f: UnknownAttributes) -> Self
Performs the conversion.
impl From<Realm> for Attribute
[src]
impl From<Nonce> for Attribute
[src]
impl From<XorMappedAddress> for Attribute
[src]
fn from(f: XorMappedAddress) -> Self
Performs the conversion.
impl From<Software> for Attribute
[src]
impl From<AlternateServer> for Attribute
[src]
fn from(f: AlternateServer) -> Self
Performs the conversion.
impl From<Fingerprint> for Attribute
[src]
fn from(f: Fingerprint) -> Self
Performs the conversion.
impl TryAsRef<MappedAddress> for Attribute
[src]
fn try_as_ref(&self) -> Option<&MappedAddress>
Performs the conversion.
impl TryAsRef<Username> for Attribute
[src]
fn try_as_ref(&self) -> Option<&Username>
Performs the conversion.
impl TryAsRef<MessageIntegrity> for Attribute
[src]
fn try_as_ref(&self) -> Option<&MessageIntegrity>
Performs the conversion.
impl TryAsRef<ErrorCode> for Attribute
[src]
fn try_as_ref(&self) -> Option<&ErrorCode>
Performs the conversion.
impl TryAsRef<UnknownAttributes> for Attribute
[src]
fn try_as_ref(&self) -> Option<&UnknownAttributes>
Performs the conversion.
impl TryAsRef<Realm> for Attribute
[src]
fn try_as_ref(&self) -> Option<&Realm>
Performs the conversion.
impl TryAsRef<Nonce> for Attribute
[src]
fn try_as_ref(&self) -> Option<&Nonce>
Performs the conversion.
impl TryAsRef<XorMappedAddress> for Attribute
[src]
fn try_as_ref(&self) -> Option<&XorMappedAddress>
Performs the conversion.
impl TryAsRef<Software> for Attribute
[src]
fn try_as_ref(&self) -> Option<&Software>
Performs the conversion.
impl TryAsRef<AlternateServer> for Attribute
[src]
fn try_as_ref(&self) -> Option<&AlternateServer>
Performs the conversion.
impl TryAsRef<Fingerprint> for Attribute
[src]
fn try_as_ref(&self) -> Option<&Fingerprint>
Performs the conversion.
impl Attribute for Attribute
[src]
fn get_type(&self) -> Type
Returns the attribute type of this instance.
fn try_from_raw(attr: &RawAttribute, message: &RawMessage) -> Result<Self>
Tries to convert from RawAttribute
. Read more
fn encode_value(&self, message: &RawMessage) -> Result<Vec<u8>>
Tries to encode the value of this attribute to bytes.
fn try_to_raw(&self, message: &RawMessage) -> Result<RawAttribute>
Tries to convert to RawAttribute
. Read more