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