pub struct AckChunkFrontData {
pub transfer_id: TransferId,
pub data: AckChunkData,
}
Fields§
§transfer_id: TransferId
§data: AckChunkData
Implementations§
Source§impl AckChunkFrontData
impl AckChunkFrontData
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 AckChunkFrontData
impl Clone for AckChunkFrontData
Source§fn clone(&self) -> AckChunkFrontData
fn clone(&self) -> AckChunkFrontData
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 Debug for AckChunkFrontData
impl Debug for AckChunkFrontData
Source§impl PartialEq for AckChunkFrontData
impl PartialEq for AckChunkFrontData
impl Eq for AckChunkFrontData
impl StructuralPartialEq for AckChunkFrontData
Auto Trait Implementations§
impl Freeze for AckChunkFrontData
impl RefUnwindSafe for AckChunkFrontData
impl Send for AckChunkFrontData
impl Sync for AckChunkFrontData
impl Unpin for AckChunkFrontData
impl UnwindSafe for AckChunkFrontData
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