#[non_exhaustive]pub enum CommsCmdParams<'a> {
Connect {
connection_descriptor: ConnectionDescriptor<'a>,
retry_count: u8,
timeout: u8,
},
SetParams {
buffer_size: u8,
timeout: u8,
},
GetNextBuffer {
comms_phase_id: u8,
},
None,
}Expand description
The branch-dependent parameters of a comms_cmd() (Table 52).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connect
Connect_on_Channel: connection descriptor + retry_count + timeout.
Fields
§
connection_descriptor: ConnectionDescriptor<'a>The nested connection_descriptor().
SetParams
Set_Params: buffer_size + timeout.
GetNextBuffer
Get_Next_Buffer: comms_phase_id.
None
No branch parameters (Disconnect_on_Channel, Enquire_Status, or a
reserved command id).
Trait Implementations§
Source§impl<'a> Clone for CommsCmdParams<'a>
impl<'a> Clone for CommsCmdParams<'a>
Source§fn clone(&self) -> CommsCmdParams<'a>
fn clone(&self) -> CommsCmdParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§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 CommsCmdParams<'a>
impl<'a> Debug for CommsCmdParams<'a>
impl<'a> Eq for CommsCmdParams<'a>
Source§impl<'a> PartialEq for CommsCmdParams<'a>
impl<'a> PartialEq for CommsCmdParams<'a>
Source§fn eq(&self, other: &CommsCmdParams<'a>) -> bool
fn eq(&self, other: &CommsCmdParams<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for CommsCmdParams<'a>
impl<'a> Serialize for CommsCmdParams<'a>
impl<'a> StructuralPartialEq for CommsCmdParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommsCmdParams<'a>
impl<'a> RefUnwindSafe for CommsCmdParams<'a>
impl<'a> Send for CommsCmdParams<'a>
impl<'a> Sync for CommsCmdParams<'a>
impl<'a> Unpin for CommsCmdParams<'a>
impl<'a> UnsafeUnpin for CommsCmdParams<'a>
impl<'a> UnwindSafe for CommsCmdParams<'a>
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