[][src]Struct goods::Loader

pub struct Loader<K> { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.