pub enum NumberControl {
WhatIs,
NumberIs {
number: u16,
flag: u8,
},
}Expand description
A validated local control, independent of transport and configured authority.
Variants§
WhatIs
A local query received by unicast or logical broadcast.
NumberIs
A valid logical-broadcast announcement.
Implementations§
Source§impl NumberControl
impl NumberControl
Sourcepub fn parse(control: &ReceivedNetworkControl) -> Option<Self>
pub fn parse(control: &ReceivedNetworkControl) -> Option<Self>
Refuse routed, malformed or ineligible controls without changing state.
Sourcepub fn parse_npdu(npdu: &Npdu, link_layer_group: bool) -> Option<Self>
pub fn parse_npdu(npdu: &Npdu, link_layer_group: bool) -> Option<Self>
Parse a decoded NPDU with its actual logical link delivery kind.
Trait Implementations§
Source§impl Clone for NumberControl
impl Clone for NumberControl
impl Copy for NumberControl
Source§impl Debug for NumberControl
impl Debug for NumberControl
impl Eq for NumberControl
Source§impl PartialEq for NumberControl
impl PartialEq for NumberControl
impl StructuralPartialEq for NumberControl
Auto Trait Implementations§
impl Freeze for NumberControl
impl RefUnwindSafe for NumberControl
impl Send for NumberControl
impl Sync for NumberControl
impl Unpin for NumberControl
impl UnsafeUnpin for NumberControl
impl UnwindSafe for NumberControl
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