[−][src]Struct goods::Loader
Loader receives loading tasks from asset cache and drives them in the async context.
Implementations
impl<K> Loader<K>
[src]
pub fn new() -> Self
[src]
pub fn poll(&mut self, ctx: &mut Context, cache: &Cache<K>) -> Poll<()>
[src]
Drives loading jobs.
pub fn flush<'a>(&'a mut self, cache: &'a Cache<K>) -> LoaderFlush<'a, K>
[src]
Drives all pending loading jobs to completion.
pub fn run<'a>(&'a mut self, cache: &'a Cache<K>) -> LoaderRun<'a, K>
[src]
Drives all loading jobs including new jobs to completion.
Auto Trait Implementations
impl<K> !RefUnwindSafe for Loader<K>
impl<K> Send for Loader<K>
impl<K> !Sync for Loader<K>
impl<K> Unpin for Loader<K>
impl<K> !UnwindSafe for Loader<K>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,