pub enum ReceiverToSenderFrontCommands {
AckChunk(AckChunkFrontData),
AckStart(u16),
}
Variants§
AckChunk(AckChunkFrontData)
AckStart(u16)
Implementations§
Source§impl ReceiverToSenderFrontCommands
impl ReceiverToSenderFrontCommands
pub const fn to_octet(&self) -> u8
Sourcepub fn to_stream(&self, stream: &mut impl WriteOctetStream) -> Result<()>
pub fn to_stream(&self, stream: &mut impl WriteOctetStream) -> Result<()>
§Errors
This function will return an io::Error
if there is an issue with writing to the stream.
This could happen if the stream is closed or if there are underlying I/O errors during the write operation.
Sourcepub fn from_stream(stream: &mut impl ReadOctetStream) -> Result<Self>
pub fn from_stream(stream: &mut impl ReadOctetStream) -> Result<Self>
§Errors
This function will return an io::Error
if there is an issue with writing to the stream.
This could happen if the stream is closed or if there are underlying I/O errors during the write operation.
Trait Implementations§
Source§impl Clone for ReceiverToSenderFrontCommands
impl Clone for ReceiverToSenderFrontCommands
Source§fn clone(&self) -> ReceiverToSenderFrontCommands
fn clone(&self) -> ReceiverToSenderFrontCommands
Returns a copy 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 PartialEq for ReceiverToSenderFrontCommands
impl PartialEq for ReceiverToSenderFrontCommands
Source§fn eq(&self, other: &ReceiverToSenderFrontCommands) -> bool
fn eq(&self, other: &ReceiverToSenderFrontCommands) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for ReceiverToSenderFrontCommands
impl StructuralPartialEq for ReceiverToSenderFrontCommands
Auto Trait Implementations§
impl Freeze for ReceiverToSenderFrontCommands
impl RefUnwindSafe for ReceiverToSenderFrontCommands
impl Send for ReceiverToSenderFrontCommands
impl Sync for ReceiverToSenderFrontCommands
impl Unpin for ReceiverToSenderFrontCommands
impl UnwindSafe for ReceiverToSenderFrontCommands
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