Struct capsules::usb::StringDescriptor
[−]
[src]
pub struct StringDescriptor<'a> { pub string: &'a str, }
Fields
string: &'a str
Trait Implementations
impl<'a> Descriptor for StringDescriptor<'a>
[src]
fn size(&self) -> usize
[src]
Serialized size of Descriptor
fn write_to_unchecked(&self, buf: &[Cell<u8>]) -> usize
[src]
Same as write_to()
, but doesn't check that buf
is long enough before indexing into it. This should be used only if the result of size()
is first consulted. Read more
fn write_to(&self, buf: &[Cell<u8>]) -> usize
[src]
Serialize the descriptor to a buffer for transmission on the bus