Struct blob_stream::protocol::AckChunkData
source · pub struct AckChunkData {
pub waiting_for_chunk_index: u32,
pub receive_mask_after_last: u64,
}
Fields§
§waiting_for_chunk_index: u32
§receive_mask_after_last: u64
Implementations§
source§impl AckChunkData
impl AckChunkData
sourcepub fn to_stream(&self, stream: &mut dyn WriteOctetStream) -> Result<()>
pub fn to_stream(&self, stream: &mut dyn 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 dyn ReadOctetStream) -> Result<Self>
pub fn from_stream(stream: &mut dyn 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 AckChunkData
impl Clone for AckChunkData
source§fn clone(&self) -> AckChunkData
fn clone(&self) -> AckChunkData
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 AckChunkData
impl Debug for AckChunkData
source§impl PartialEq for AckChunkData
impl PartialEq for AckChunkData
impl Copy for AckChunkData
impl Eq for AckChunkData
impl StructuralPartialEq for AckChunkData
Auto Trait Implementations§
impl Freeze for AckChunkData
impl RefUnwindSafe for AckChunkData
impl Send for AckChunkData
impl Sync for AckChunkData
impl Unpin for AckChunkData
impl UnwindSafe for AckChunkData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)