Struct stun_codec::rfc5389::attributes::Software [−][src]
pub struct Software { /* fields omitted */ }SOFTWARE attribute.
See RFC 5389 -- 15.10. SOFTWARE about this attribute.
Methods
impl Software[src]
impl Softwarepub const CODEPOINT: u16
CODEPOINT: u16 = 32802
The codepoint of the type of the attribute.
pub fn new(description: String) -> Result<Self>[src]
pub fn new(description: String) -> Result<Self>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]
pub fn description(&self) -> &strReturns the description of this instance.
Trait Implementations
impl Debug for Software[src]
impl Debug for Softwarefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Software[src]
impl Clone for Softwarefn clone(&self) -> Software[src]
fn clone(&self) -> SoftwareReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Software[src]
impl PartialEq for Softwarefn eq(&self, other: &Software) -> bool[src]
fn eq(&self, other: &Software) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Software) -> bool[src]
fn ne(&self, other: &Software) -> boolThis method tests for !=.
impl Eq for Software[src]
impl Eq for Softwareimpl Hash for Software[src]
impl Hash for Softwarefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Attribute for Software[src]
impl Attribute for Softwaretype 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 get_type(&self) -> AttributeTypeReturns the type of the attribute.
fn before_encode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>[src]
fn before_encode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>This method is called before encoding the attribute. Read more
fn after_decode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>[src]
fn after_decode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>This method is called after decoding the attribute and before being appended to the given message. Read more
impl From<Software> for Attribute[src]
impl From<Software> for Attributeimpl TryAsRef<Software> for Attribute[src]
impl TryAsRef<Software> for Attributefn try_as_ref(&self) -> Option<&Software>[src]
fn try_as_ref(&self) -> Option<&Software>Attempts to convert self to a reference to T. Read more