Enum MacCommand
pub enum MacCommand<'a> {
IdentityRequest {
options: &'a [u8],
},
SignalReportRequest,
SignalReportResponse {
rssi: u8,
snr: i8,
},
EchoRequest {
data: &'a [u8],
},
EchoResponse {
data: &'a [u8],
},
PfsSessionRequest {
ephemeral_key: PublicKey,
duration_minutes: u16,
},
PfsSessionResponse {
ephemeral_key: PublicKey,
duration_minutes: u16,
},
EndPfsSession,
}Variants§
IdentityRequest
Request that the destination respond with its node identity.
options is a CoAP-style option block of [identity_filter] keys,
empty for a plain unicast request. Interpret it with
[IdentityRequestFilters].
SignalReportRequest
SignalReportResponse
EchoRequest
EchoResponse
PfsSessionRequest
PfsSessionResponse
EndPfsSession
Trait Implementations§
§impl<'a> Clone for MacCommand<'a>
impl<'a> Clone for MacCommand<'a>
§fn clone(&self) -> MacCommand<'a>
fn clone(&self) -> MacCommand<'a>
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 more§impl<'a> Debug for MacCommand<'a>
impl<'a> Debug for MacCommand<'a>
§impl From<MacCommand<'_>> for OwnedMacCommand
impl From<MacCommand<'_>> for OwnedMacCommand
§fn from(value: MacCommand<'_>) -> OwnedMacCommand
fn from(value: MacCommand<'_>) -> OwnedMacCommand
Converts to this type from the input type.
§impl<'a> PartialEq for MacCommand<'a>
impl<'a> PartialEq for MacCommand<'a>
impl<'a> Copy for MacCommand<'a>
impl<'a> Eq for MacCommand<'a>
impl<'a> StructuralPartialEq for MacCommand<'a>
Auto Trait Implementations§
impl<'a> Freeze for MacCommand<'a>
impl<'a> RefUnwindSafe for MacCommand<'a>
impl<'a> Send for MacCommand<'a>
impl<'a> Sync for MacCommand<'a>
impl<'a> Unpin for MacCommand<'a>
impl<'a> UnwindSafe for MacCommand<'a>
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)