pub enum SenderToReceiverFrontCommands {
SetChunk(SetChunkFrontData),
StartTransfer(StartTransferData),
}
Variants§
SetChunk(SetChunkFrontData)
StartTransfer(StartTransferData)
Implementations§
Source§impl SenderToReceiverFrontCommands
impl SenderToReceiverFrontCommands
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 SenderToReceiverFrontCommands
impl Clone for SenderToReceiverFrontCommands
Source§fn clone(&self) -> SenderToReceiverFrontCommands
fn clone(&self) -> SenderToReceiverFrontCommands
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 SenderToReceiverFrontCommands
impl PartialEq for SenderToReceiverFrontCommands
Source§fn eq(&self, other: &SenderToReceiverFrontCommands) -> bool
fn eq(&self, other: &SenderToReceiverFrontCommands) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for SenderToReceiverFrontCommands
impl StructuralPartialEq for SenderToReceiverFrontCommands
Auto Trait Implementations§
impl Freeze for SenderToReceiverFrontCommands
impl RefUnwindSafe for SenderToReceiverFrontCommands
impl Send for SenderToReceiverFrontCommands
impl Sync for SenderToReceiverFrontCommands
impl Unpin for SenderToReceiverFrontCommands
impl UnwindSafe for SenderToReceiverFrontCommands
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