pub struct Software(/* private fields */);
Expand description
The Software
attribute contains a textual description of the software
being used by the agent sending the message. It is used by clients
and servers. Its value SHOULD include manufacturer and version
number. The attribute has no impact on operation of the protocol and
serves only as a tool for diagnostic and debugging purposes.
§Examples
let attr = Software::new("STUN test client")?;
assert_eq!(attr, "STUN test client");
Implementations§
Trait Implementations§
source§impl From<Software> for StunAttribute
impl From<Software> for StunAttribute
source§impl Ord for Software
impl Ord for Software
source§impl PartialOrd for Software
impl PartialOrd for Software
source§impl StunAttributeType for Software
impl StunAttributeType for Software
source§fn get_type() -> AttributeTypewhere
Self: Sized,
fn get_type() -> AttributeTypewhere
Self: Sized,
Returns the STUN attribute type.
source§fn attribute_type(&self) -> AttributeType
fn attribute_type(&self) -> AttributeType
Returns the STUN attribute type of this instance.
impl Eq for Software
impl StructuralPartialEq for Software
Auto Trait Implementations§
impl Freeze for Software
impl RefUnwindSafe for Software
impl Send for Software
impl Sync for Software
impl Unpin for Software
impl UnwindSafe for Software
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)