pub struct FetchProcess { /* private fields */ }
Implementations§
Source§impl FetchProcess
impl FetchProcess
pub fn new() -> Self
pub fn new_start() -> Self
pub fn new_done(data: Vec<u8>) -> Self
pub fn new_cancel(reason: FetchCancelReason) -> Self
pub fn id(&self) -> FetchProcessId
pub fn status(&self) -> FetchStatus
pub fn start(&mut self)
pub fn progress(&mut self, value: Scalar)
pub fn done(&mut self, data: Vec<u8>)
pub fn cancel(&mut self, reason: FetchCancelReason)
pub fn readers_count(&self) -> usize
pub fn read(&self) -> Option<Vec<u8>>
pub fn byte_size(&self) -> Option<usize>
Trait Implementations§
Source§impl Clone for FetchProcess
impl Clone for FetchProcess
Source§fn clone(&self) -> FetchProcess
fn clone(&self) -> FetchProcess
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 moreAuto Trait Implementations§
impl Freeze for FetchProcess
impl RefUnwindSafe for FetchProcess
impl Send for FetchProcess
impl Sync for FetchProcess
impl Unpin for FetchProcess
impl UnwindSafe for FetchProcess
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