pub enum OptionAndSubValue {
IpAddr(InnerIpAddr),
ManufacturerSpecific(BytesWrap),
NameOfStation(BytesWrap),
DeviceId([u8; 2], [u8; 2]),
DeviceRole(u8, u8),
DeviceOptions(Vec<OptionAndSub>),
Response(Response),
All,
Other(OptionAndSub, BytesWrap),
}Variants§
IpAddr(InnerIpAddr)
ManufacturerSpecific(BytesWrap)
NameOfStation(BytesWrap)
DeviceId([u8; 2], [u8; 2])
DeviceRole(u8, u8)
DeviceOptions(Vec<OptionAndSub>)
Response(Response)
All
Other(OptionAndSub, BytesWrap)
Implementations§
Source§impl OptionAndSubValue
impl OptionAndSubValue
pub fn append_option_to_data(&self, data: &mut Vec<u8>)
pub fn append_value_to_data(&self, data: &mut Vec<u8>)
pub fn init_by_ty(ty: OptionAndSub, data: BytesWrap) -> Result<Self>
pub fn payload_size(&self) -> usize
pub fn append_to_ident_resp_default(self, packet: &mut PacketIdentResp)
pub fn append_to_ident_resp(self, packet: &mut PacketIdentResp, info: BlockInfo)
Trait Implementations§
Source§impl Clone for OptionAndSubValue
impl Clone for OptionAndSubValue
Source§fn clone(&self) -> OptionAndSubValue
fn clone(&self) -> OptionAndSubValue
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 OptionAndSubValue
impl Debug for OptionAndSubValue
Source§impl From<OptionAndSubValue> for BlockCommonWithoutInfo
impl From<OptionAndSubValue> for BlockCommonWithoutInfo
Source§fn from(a: OptionAndSubValue) -> Self
fn from(a: OptionAndSubValue) -> Self
Converts to this type from the input type.
Source§impl From<OptionAndSubValue> for IdentReqBlock
impl From<OptionAndSubValue> for IdentReqBlock
Source§fn from(a: OptionAndSubValue) -> Self
fn from(a: OptionAndSubValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OptionAndSubValue
impl PartialEq for OptionAndSubValue
impl Eq for OptionAndSubValue
impl StructuralPartialEq for OptionAndSubValue
Auto Trait Implementations§
impl !Freeze for OptionAndSubValue
impl RefUnwindSafe for OptionAndSubValue
impl Send for OptionAndSubValue
impl Sync for OptionAndSubValue
impl Unpin for OptionAndSubValue
impl UnwindSafe for OptionAndSubValue
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