pub struct DataTransfer {
pub count: u64,
pub complete: bool,
}Expand description
Information about a data transfer. This is the result of
DataStream::into, and provides information about the state of the
stream after the transfer.
Fields§
§count: u64The number of bytes that were transferred. This may be less than the number of bytes requested if the stream ended.
complete: boolWhether or not the stream ended before or as a result of the transfer,
not including the limit - if the limit was reached, and there was still
pending data, this will be false.
Trait Implementations§
Source§impl Clone for DataTransfer
impl Clone for DataTransfer
Source§fn clone(&self) -> DataTransfer
fn clone(&self) -> DataTransfer
Returns a duplicate 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 DataTransfer
impl Debug for DataTransfer
impl Copy for DataTransfer
Auto Trait Implementations§
impl Freeze for DataTransfer
impl RefUnwindSafe for DataTransfer
impl Send for DataTransfer
impl Sync for DataTransfer
impl Unpin for DataTransfer
impl UnwindSafe for DataTransfer
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