pub enum MacCommand<'a> {
BeaconRequest {
nonce: Option<u32>,
},
IdentityRequest,
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§
BeaconRequest
IdentityRequest
SignalReportRequest
SignalReportResponse
EchoRequest
EchoResponse
PfsSessionRequest
PfsSessionResponse
EndPfsSession
Trait Implementations§
Source§impl<'a> Clone for MacCommand<'a>
impl<'a> Clone for MacCommand<'a>
Source§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 moreSource§impl<'a> Debug for MacCommand<'a>
impl<'a> Debug for MacCommand<'a>
Source§impl From<MacCommand<'_>> for OwnedMacCommand
impl From<MacCommand<'_>> for OwnedMacCommand
Source§fn from(value: MacCommand<'_>) -> Self
fn from(value: MacCommand<'_>) -> Self
Converts to this type from the input type.
Source§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)