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 start(&mut self)
pub fn progress(&mut self, value: f32)
pub fn done(&mut self, data: Vec<u8>)
pub fn cancel(&mut self, reason: FetchCancelReason)
pub fn readers_count(&self) -> usize
Trait Implementations§
Source§impl Clone for FetchProcess
impl Clone for FetchProcess
Source§fn clone(&self) -> FetchProcess
fn clone(&self) -> FetchProcess
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 Default for FetchProcess
impl Default for FetchProcess
Source§impl FetchProcessReader for FetchProcess
impl FetchProcessReader for FetchProcess
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
Source§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
Source§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.