pub struct NetworkKeySet {
pub network_key: Vec<u8>,
}Expand description
Security 0 Network Key Set (0x98 0x06).
Fields§
§network_key: Vec<u8>The network_key field.
Implementations§
Source§impl NetworkKeySet
impl NetworkKeySet
Sourcepub fn parse(p: &[u8]) -> Result<Self, ParseError>
pub fn parse(p: &[u8]) -> Result<Self, ParseError>
Parses the payload after the command id. Extra trailing bytes (newer versions) are ignored.
Sourcepub fn encode_payload(&self, w: &mut Vec<u8>)
pub fn encode_payload(&self, w: &mut Vec<u8>)
Appends the payload after the command id.
Trait Implementations§
Source§impl Clone for NetworkKeySet
impl Clone for NetworkKeySet
Source§impl Debug for NetworkKeySet
impl Debug for NetworkKeySet
Source§impl Default for NetworkKeySet
impl Default for NetworkKeySet
impl Eq for NetworkKeySet
Source§impl From<NetworkKeySet> for Command
impl From<NetworkKeySet> for Command
Source§fn from(c: NetworkKeySet) -> Self
fn from(c: NetworkKeySet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NetworkKeySet
impl PartialEq for NetworkKeySet
impl StructuralPartialEq for NetworkKeySet
Auto Trait Implementations§
impl Freeze for NetworkKeySet
impl RefUnwindSafe for NetworkKeySet
impl Send for NetworkKeySet
impl Sync for NetworkKeySet
impl Unpin for NetworkKeySet
impl UnsafeUnpin for NetworkKeySet
impl UnwindSafe for NetworkKeySet
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