Struct someip_parse::sd_options::UnknownDiscardableOption
source · 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: u8
Trait Implementations§
source§impl Clone for UnknownDiscardableOption
impl Clone for UnknownDiscardableOption
source§fn clone(&self) -> UnknownDiscardableOption
fn clone(&self) -> UnknownDiscardableOption
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 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
source§fn eq(&self, other: &UnknownDiscardableOption) -> bool
fn eq(&self, other: &UnknownDiscardableOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UnknownDiscardableOption
impl StructuralEq for UnknownDiscardableOption
impl StructuralPartialEq for UnknownDiscardableOption
Auto Trait Implementations§
impl RefUnwindSafe for UnknownDiscardableOption
impl Send for UnknownDiscardableOption
impl Sync for UnknownDiscardableOption
impl Unpin for UnknownDiscardableOption
impl UnwindSafe for UnknownDiscardableOption
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