Struct usb_device::device::StringDescriptors
source · pub struct StringDescriptors<'a> { /* private fields */ }
Expand description
Provides basic string descriptors about the device, including the manufacturer, product name, and serial number of the device in a specified language.
Implementations§
source§impl<'a> StringDescriptors<'a>
impl<'a> StringDescriptors<'a>
sourcepub fn serial_number(self, serial: &'a str) -> Self
pub fn serial_number(self, serial: &'a str) -> Self
Specify the serial number for this language.
sourcepub fn manufacturer(self, manufacturer: &'a str) -> Self
pub fn manufacturer(self, manufacturer: &'a str) -> Self
Specify the manufacturer name for this language.
Trait Implementations§
source§impl<'a> Clone for StringDescriptors<'a>
impl<'a> Clone for StringDescriptors<'a>
source§fn clone(&self) -> StringDescriptors<'a>
fn clone(&self) -> StringDescriptors<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for StringDescriptors<'a>
impl<'a> Debug for StringDescriptors<'a>
source§impl<'a> Default for StringDescriptors<'a>
impl<'a> Default for StringDescriptors<'a>
source§impl<'a> PartialEq for StringDescriptors<'a>
impl<'a> PartialEq for StringDescriptors<'a>
source§fn eq(&self, other: &StringDescriptors<'a>) -> bool
fn eq(&self, other: &StringDescriptors<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for StringDescriptors<'a>
impl<'a> StructuralPartialEq for StringDescriptors<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StringDescriptors<'a>
impl<'a> Send for StringDescriptors<'a>
impl<'a> Sync for StringDescriptors<'a>
impl<'a> Unpin for StringDescriptors<'a>
impl<'a> UnwindSafe for StringDescriptors<'a>
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