Struct oxygengine_core::fetch::FetchProcess
source · [−]pub struct FetchProcess { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Clone for FetchProcess
impl Clone for FetchProcess
sourcefn clone(&self) -> FetchProcess
fn clone(&self) -> FetchProcess
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for FetchProcess
impl Send for FetchProcess
impl Sync for FetchProcess
impl Unpin for FetchProcess
impl UnwindSafe for FetchProcess
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more