pub struct Software { /* private fields */ }Expand description
SOFTWARE attribute.
See RFC 5389 – 15.10. SOFTWARE about this attribute.
Implementations§
Source§impl Software
impl Software
Sourcepub fn new(description: String) -> Result<Software, Error>
pub fn new(description: String) -> Result<Software, Error>
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.
Sourcepub const fn new_static(description: &'static str) -> Software
pub const fn new_static(description: &'static str) -> Software
Makes a new Software instance from a static string.
This function is const, so you can create this in a const context.
§Panics
The length of description must be less than 128 characters.
Panics if the string is longer.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the description of this instance.
Trait Implementations§
Source§impl Attribute for Software
impl Attribute for Software
Source§type Decoder = SoftwareDecoder
type Decoder = SoftwareDecoder
The decoder of the value part of the attribute.
Source§type Encoder = SoftwareEncoder
type Encoder = SoftwareEncoder
The encoder of the value part of the attribute.
Source§fn get_type(&self) -> AttributeType
fn get_type(&self) -> AttributeType
Returns the type of the attribute.
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