Trait AccessExt

Source
pub trait AccessExt:
    Access
    + Sized
    + Clone {
    // Provided methods
    fn get(&self, action: Action) -> RequestBuilder { ... }
    fn post(&self, action: Action) -> RequestBuilder { ... }
    fn get_csrf_token(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<CsrfToken>> + Send + Sync>> { ... }
    fn get_token<T: Token>(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + Sync>> { ... }
    fn query_all(
        &self,
        query: Query,
    ) -> GeneratorStream<QueryAllGenerator<Self>> { ... }
}

Provided Methods§

Source

fn get(&self, action: Action) -> RequestBuilder

Source

fn post(&self, action: Action) -> RequestBuilder

Source

fn get_csrf_token( &self, ) -> Pin<Box<dyn Future<Output = Result<CsrfToken>> + Send + Sync>>

Source

fn get_token<T: Token>( &self, ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + Sync>>

Source

fn query_all(&self, query: Query) -> GeneratorStream<QueryAllGenerator<Self>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Access + Clone> AccessExt for T