Struct oxygengine_core::fetch::FetchProcess
source · 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 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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more