pub struct CustomDesc {
pub descriptor_type: u8,
pub data: Vec<u8>,
}Expand description
Custom descriptor.
The raw descriptor published will be of the form:
[length, descriptor_type, data...]
Fields§
§descriptor_type: u8Descriptor type.
data: Vec<u8>Custom data.
Implementations§
Trait Implementations§
Source§impl Clone for CustomDesc
impl Clone for CustomDesc
Source§fn clone(&self) -> CustomDesc
fn clone(&self) -> CustomDesc
Returns a duplicate 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 Debug for CustomDesc
impl Debug for CustomDesc
Auto Trait Implementations§
impl Freeze for CustomDesc
impl RefUnwindSafe for CustomDesc
impl Send for CustomDesc
impl Sync for CustomDesc
impl Unpin for CustomDesc
impl UnsafeUnpin for CustomDesc
impl UnwindSafe for CustomDesc
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