Enum stun_codec::rfc5766::Attribute
source · pub enum Attribute {
ChannelNumber(ChannelNumber),
Lifetime(Lifetime),
XorPeerAddress(XorPeerAddress),
Data(Data),
XorRelayAddress(XorRelayAddress),
EvenPort(EvenPort),
RequestedTransport(RequestedTransport),
DontFragment(DontFragment),
ReservationToken(ReservationToken),
}
Expand description
Attribute set.
Variants§
ChannelNumber(ChannelNumber)
Lifetime(Lifetime)
XorPeerAddress(XorPeerAddress)
Data(Data)
XorRelayAddress(XorRelayAddress)
EvenPort(EvenPort)
RequestedTransport(RequestedTransport)
DontFragment(DontFragment)
ReservationToken(ReservationToken)
Trait Implementations§
source§impl Attribute for Attribute
impl Attribute for Attribute
§type Decoder = AttributeDecoder
type Decoder = AttributeDecoder
The decoder of the value part of the attribute.
§type Encoder = AttributeEncoder
type Encoder = AttributeEncoder
The encoder of the value part of the attribute.
source§fn get_type(&self) -> AttributeType
fn get_type(&self) -> AttributeType
Returns the type of the attribute.
source§impl From<ChannelNumber> for Attribute
impl From<ChannelNumber> for Attribute
source§fn from(f: ChannelNumber) -> Self
fn from(f: ChannelNumber) -> Self
Converts to this type from the input type.
source§impl From<DontFragment> for Attribute
impl From<DontFragment> for Attribute
source§fn from(f: DontFragment) -> Self
fn from(f: DontFragment) -> Self
Converts to this type from the input type.
source§impl From<RequestedTransport> for Attribute
impl From<RequestedTransport> for Attribute
source§fn from(f: RequestedTransport) -> Self
fn from(f: RequestedTransport) -> Self
Converts to this type from the input type.
source§impl From<ReservationToken> for Attribute
impl From<ReservationToken> for Attribute
source§fn from(f: ReservationToken) -> Self
fn from(f: ReservationToken) -> Self
Converts to this type from the input type.
source§impl From<XorPeerAddress> for Attribute
impl From<XorPeerAddress> for Attribute
source§fn from(f: XorPeerAddress) -> Self
fn from(f: XorPeerAddress) -> Self
Converts to this type from the input type.
source§impl From<XorRelayAddress> for Attribute
impl From<XorRelayAddress> for Attribute
source§fn from(f: XorRelayAddress) -> Self
fn from(f: XorRelayAddress) -> Self
Converts to this type from the input type.
source§impl PartialEq for Attribute
impl PartialEq for Attribute
source§impl TryAsRef<ChannelNumber> for Attribute
impl TryAsRef<ChannelNumber> for Attribute
source§fn try_as_ref(&self) -> Option<&ChannelNumber>
fn try_as_ref(&self) -> Option<&ChannelNumber>
source§impl TryAsRef<DontFragment> for Attribute
impl TryAsRef<DontFragment> for Attribute
source§fn try_as_ref(&self) -> Option<&DontFragment>
fn try_as_ref(&self) -> Option<&DontFragment>
source§impl TryAsRef<RequestedTransport> for Attribute
impl TryAsRef<RequestedTransport> for Attribute
source§fn try_as_ref(&self) -> Option<&RequestedTransport>
fn try_as_ref(&self) -> Option<&RequestedTransport>
source§impl TryAsRef<ReservationToken> for Attribute
impl TryAsRef<ReservationToken> for Attribute
source§fn try_as_ref(&self) -> Option<&ReservationToken>
fn try_as_ref(&self) -> Option<&ReservationToken>
source§impl TryAsRef<XorPeerAddress> for Attribute
impl TryAsRef<XorPeerAddress> for Attribute
source§fn try_as_ref(&self) -> Option<&XorPeerAddress>
fn try_as_ref(&self) -> Option<&XorPeerAddress>
source§impl TryAsRef<XorRelayAddress> for Attribute
impl TryAsRef<XorRelayAddress> for Attribute
source§fn try_as_ref(&self) -> Option<&XorRelayAddress>
fn try_as_ref(&self) -> Option<&XorRelayAddress>
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more