pub struct NoAck<const NO_ACK: bool, T>(pub T);
Expand description
Frame or frame body distinguished by acknowledgement or lack thereof, namely action frames.
Tuple Fields§
§0: T
Implementations§
Source§impl<const NO_ACK: bool, B> NoAck<NO_ACK, ActionBody<B>>where
B: SplitByteSlice,
impl<const NO_ACK: bool, B> NoAck<NO_ACK, ActionBody<B>>where
B: SplitByteSlice,
Trait Implementations§
Source§impl<B> From<NoAck<false, ActionBody<B>>> for ActionFrame<B>where
B: SplitByteSlice,
impl<B> From<NoAck<false, ActionBody<B>>> for ActionFrame<B>where
B: SplitByteSlice,
Source§fn from(frame: ActionAckFrame<B>) -> Self
fn from(frame: ActionAckFrame<B>) -> Self
Converts to this type from the input type.
Source§impl<B> From<NoAck<true, ActionBody<B>>> for ActionFrame<B>where
B: SplitByteSlice,
impl<B> From<NoAck<true, ActionBody<B>>> for ActionFrame<B>where
B: SplitByteSlice,
Source§fn from(frame: ActionNoAckFrame<B>) -> Self
fn from(frame: ActionNoAckFrame<B>) -> Self
Converts to this type from the input type.
impl<const NO_ACK: bool, T: Copy> Copy for NoAck<NO_ACK, T>
Auto Trait Implementations§
impl<const NO_ACK: bool, T> Freeze for NoAck<NO_ACK, T>where
T: Freeze,
impl<const NO_ACK: bool, T> RefUnwindSafe for NoAck<NO_ACK, T>where
T: RefUnwindSafe,
impl<const NO_ACK: bool, T> Send for NoAck<NO_ACK, T>where
T: Send,
impl<const NO_ACK: bool, T> Sync for NoAck<NO_ACK, T>where
T: Sync,
impl<const NO_ACK: bool, T> Unpin for NoAck<NO_ACK, T>where
T: Unpin,
impl<const NO_ACK: bool, T> UnwindSafe for NoAck<NO_ACK, T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)