Fetch

Trait Fetch 

Source
pub trait Fetch:
    Send
    + Sync
    + FetchBytes {
    type T;
    type Extra;

    // Required methods
    fn fetch_full(&self) -> FailFuture<'_, (Self::T, Arc<dyn Resolve>)>;
    fn fetch(&self) -> FailFuture<'_, Self::T>;
    fn extra(&self) -> &Self::Extra;

    // Provided methods
    fn get(&self) -> Option<&Self::T> { ... }
    fn get_mut(&mut self) -> Option<&mut Self::T> { ... }
    fn get_mut_finalize(&mut self) { ... }
}

Required Associated Types§

Required Methods§

Source

fn fetch_full(&self) -> FailFuture<'_, (Self::T, Arc<dyn Resolve>)>

Source

fn fetch(&self) -> FailFuture<'_, Self::T>

Source

fn extra(&self) -> &Self::Extra

Provided Methods§

Source

fn get(&self) -> Option<&Self::T>

Source

fn get_mut(&mut self) -> Option<&mut Self::T>

Source

fn get_mut_finalize(&mut self)

Implementors§

Source§

impl<T: Object<Extra>, Extra: 'static + Send + Sync> Fetch for Point<T, Extra>

Source§

type T = T

Source§

type Extra = Extra

Source§

impl<T: Object<Extra>, Extra: 'static + Send + Sync> Fetch for RawPoint<T, Extra>

Source§

type T = T

Source§

type Extra = Extra