Fetch

Trait Fetch 

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

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

    // 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§

Source

type T

Required Methods§

Source

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

Source

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

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: FullHash> Fetch for Point<T>

Source§

type T = T

Source§

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

Source§

type T = T