pub enum MctpControl {
SetEndpointIdRequest([u8; 2]),
SetEndpointIdResponse([u8; 3]),
GetEndpointIdRequest,
GetEndpointIdResponse([u8; 3]),
}Variants§
SetEndpointIdRequest([u8; 2])
SetEndpointIdResponse([u8; 3])
GetEndpointIdRequest
GetEndpointIdResponse([u8; 3])
Trait Implementations§
Source§impl Clone for MctpControl
impl Clone for MctpControl
Source§fn clone(&self) -> MctpControl
fn clone(&self) -> MctpControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MctpControl
impl Debug for MctpControl
Source§impl Format for MctpControl
impl Format for MctpControl
Source§impl<'buf> MctpMessageTrait<'buf> for MctpControl
impl<'buf> MctpMessageTrait<'buf> for MctpControl
const MESSAGE_TYPE: u8 = 0u8
type Header = MctpControlHeader
fn serialize<M: MctpMedium>( self, buffer: &mut [u8], ) -> MctpPacketResult<usize, M>
fn deserialize<M: MctpMedium>( header: &Self::Header, buffer: &'buf [u8], ) -> MctpPacketResult<Self, M>
Source§impl PartialEq for MctpControl
impl PartialEq for MctpControl
impl Eq for MctpControl
impl StructuralPartialEq for MctpControl
Auto Trait Implementations§
impl Freeze for MctpControl
impl RefUnwindSafe for MctpControl
impl Send for MctpControl
impl Sync for MctpControl
impl Unpin for MctpControl
impl UnwindSafe for MctpControl
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