Struct stun_codec::rfc5389::attributes::Software[][src]

pub struct Software { /* fields omitted */ }

SOFTWARE attribute.

See RFC 5389 -- 15.10. SOFTWARE about this attribute.

Implementations

impl Software[src]

pub const CODEPOINT: u16[src]

The codepoint of the type of the attribute.

pub fn new(description: String) -> Result<Self>[src]

Makes a new Software instance.

Errors

The length of description must be less than 128 characters. If it is too long, this will return an ErrorKind::InvalidInput error.

pub fn description(&self) -> &str[src]

Returns the description of this instance.

Trait Implementations

impl Attribute for Software[src]

type Decoder = SoftwareDecoder

The decoder of the value part of the attribute.

type Encoder = SoftwareEncoder

The encoder of the value part of the attribute.

impl Clone for Software[src]

impl Debug for Software[src]

impl Eq for Software[src]

impl From<Software> for Attribute[src]

impl Hash for Software[src]

impl PartialEq<Software> for Software[src]

impl StructuralEq for Software[src]

impl StructuralPartialEq for Software[src]

impl TryAsRef<Software> for Attribute[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.