Struct stun_codec::rfc5389::attributes::Software [−][src]
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.
fn get_type(&self) -> AttributeType
[src]
fn before_encode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>
[src]
fn after_decode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>
[src]
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Software> for Software
[src]
impl StructuralEq for Software
[src]
impl StructuralPartialEq for Software
[src]
impl TryAsRef<Software> for Attribute
[src]
fn try_as_ref(&self) -> Option<&Software>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Software
[src]
impl Send for Software
[src]
impl Sync for Software
[src]
impl Unpin for Software
[src]
impl UnwindSafe for Software
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,