Struct stun_types::attribute::Username
source · pub struct Username { /* private fields */ }Expand description
The username Attribute
Implementations§
Trait Implementations§
source§impl From<Username> for RawAttribute
impl From<Username> for RawAttribute
source§fn from(value: Username) -> RawAttribute
fn from(value: Username) -> RawAttribute
Converts to this type from the input type.
source§impl PartialEq for Username
impl PartialEq for Username
source§impl TryFrom<&RawAttribute> for Username
impl TryFrom<&RawAttribute> for Username
§type Error = StunParseError
type Error = StunParseError
The type returned in the event of a conversion error.
impl Eq for Username
impl StructuralPartialEq for Username
Auto Trait Implementations§
impl Freeze for Username
impl RefUnwindSafe for Username
impl Send for Username
impl Sync for Username
impl Unpin for Username
impl UnwindSafe for Username
Blanket Implementations§
source§impl<E, T> AttributeFromRaw<E> for T
impl<E, T> AttributeFromRaw<E> for T
source§fn from_raw(raw: &RawAttribute) -> Result<T, E>
fn from_raw(raw: &RawAttribute) -> Result<T, E>
Convert an
Attribute from a RawAttributesource§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