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