pub struct UnknownDiscardableOption {
pub length: u16,
pub option_type: u8,
}Expand description
An unknown option that is flagged as “discardable” and should be ignored by the receiver if not supported.
This option is only intended to be used for reading, to ensure the option indices are still matching. In case this option is passed to a write function an error will be triggered.
Fields§
§length: u16§option_type: u8Trait Implementations§
Source§impl Clone for UnknownDiscardableOption
impl Clone for UnknownDiscardableOption
Source§fn clone(&self) -> UnknownDiscardableOption
fn clone(&self) -> UnknownDiscardableOption
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnknownDiscardableOption
impl Debug for UnknownDiscardableOption
Source§impl From<UnknownDiscardableOption> for SdOption
impl From<UnknownDiscardableOption> for SdOption
Source§fn from(o: UnknownDiscardableOption) -> Self
fn from(o: UnknownDiscardableOption) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnknownDiscardableOption
impl PartialEq for UnknownDiscardableOption
impl Eq for UnknownDiscardableOption
impl StructuralPartialEq for UnknownDiscardableOption
Auto Trait Implementations§
impl Freeze for UnknownDiscardableOption
impl RefUnwindSafe for UnknownDiscardableOption
impl Send for UnknownDiscardableOption
impl Sync for UnknownDiscardableOption
impl Unpin for UnknownDiscardableOption
impl UnwindSafe for UnknownDiscardableOption
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)