Struct blob_stream::protocol::StartTransferData
source · pub struct StartTransferData {
pub transfer_id: u16,
pub total_octet_size: u32,
pub chunk_size: u16,
}
Fields§
§transfer_id: u16
§total_octet_size: u32
§chunk_size: u16
Implementations§
source§impl StartTransferData
impl StartTransferData
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 StartTransferData
impl Clone for StartTransferData
source§fn clone(&self) -> StartTransferData
fn clone(&self) -> StartTransferData
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 StartTransferData
impl Debug for StartTransferData
source§impl PartialEq for StartTransferData
impl PartialEq for StartTransferData
impl Eq for StartTransferData
impl StructuralPartialEq for StartTransferData
Auto Trait Implementations§
impl Freeze for StartTransferData
impl RefUnwindSafe for StartTransferData
impl Send for StartTransferData
impl Sync for StartTransferData
impl Unpin for StartTransferData
impl UnwindSafe for StartTransferData
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
)