Struct stun_types::attribute::Username
source · pub struct Username { /* private fields */ }Expand description
The username Attribute
Implementations§
Trait Implementations§
source§impl<'a> From<&'a Username> for RawAttribute<'a>
impl<'a> From<&'a Username> for RawAttribute<'a>
source§fn from(value: &'a Username) -> RawAttribute<'a>
fn from(value: &'a Username) -> RawAttribute<'a>
Converts to this type from the input type.
source§impl PartialEq for Username
impl PartialEq for Username
source§impl<'a> TryFrom<&RawAttribute<'a>> for Username
impl<'a> TryFrom<&RawAttribute<'a>> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)