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