pub struct BlockOption {
pub code: u16,
pub length: u16,
pub pen: Option<u32>,
pub value: Vec<u8>,
}Fields§
§code: u16Option code
length: u16Length of the option value in bytes
pen: Option<u32>Private Enterprise Number (PEN)
Only present if the option is a custom option
value: Vec<u8>The value of the option
Implementations§
Trait Implementations§
Source§impl Clone for BlockOption
impl Clone for BlockOption
Source§fn clone(&self) -> BlockOption
fn clone(&self) -> BlockOption
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 BlockOption
impl Debug for BlockOption
Source§impl PartialEq for BlockOption
impl PartialEq for BlockOption
impl Eq for BlockOption
impl StructuralPartialEq for BlockOption
Auto Trait Implementations§
impl Freeze for BlockOption
impl RefUnwindSafe for BlockOption
impl Send for BlockOption
impl Sync for BlockOption
impl Unpin for BlockOption
impl UnwindSafe for BlockOption
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