Struct rustun::rfc5389::attributes::Software
[−]
[src]
pub struct Software { /* fields omitted */ }
SOFTWARE
attribute.
See RFC 5389 -- 15.10. SOFTWARE about this attribute.
Methods
impl Software
[src]
fn new(description: String) -> Option<Self>
Makes a new Software
instance.
The length of description
must be less than 128
characters.
If it is too long, this will return None
.
fn description(&self) -> &str
Returns the description of this instance.
Trait Implementations
impl Debug for Software
[src]
impl Clone for Software
[src]
fn clone(&self) -> Software
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Software
[src]
fn eq(&self, __arg_0: &Software) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Software) -> bool
This method tests for !=
.
impl Eq for Software
[src]
impl Hash for Software
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Attribute for Software
[src]
fn get_type(&self) -> Type
Returns the attribute type of this instance.
fn try_from_raw(attr: &RawAttribute, _message: &RawMessage) -> Result<Self>
Tries to convert from RawAttribute
. Read more
fn encode_value(&self, _message: &RawMessage) -> Result<Vec<u8>>
Tries to encode the value of this attribute to bytes.
fn try_to_raw(&self, message: &RawMessage) -> Result<RawAttribute>
Tries to convert to RawAttribute
. Read more