GraphQuery

Trait GraphQuery 

Source
pub trait GraphQuery {
    // Required method
    fn query_as<'life0, 'life1, 'async_trait, D>(
        &'life0 mut self,
        stmt: &'life1 Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput<D>, GraphQueryError>> + Send + 'async_trait>>
       where D: 'async_trait + DeserializeOwned,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided methods
    fn query<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        stmt: &'life1 Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput<()>, GraphQueryError>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn show_hosts<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput<Host>, GraphQueryError>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
    fn show_spaces<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput<Space>, GraphQueryError>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn query_as<'life0, 'life1, 'async_trait, D>( &'life0 mut self, stmt: &'life1 Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput<D>, GraphQueryError>> + Send + 'async_trait>>
where D: 'async_trait + DeserializeOwned, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn query<'life0, 'life1, 'async_trait>( &'life0 mut self, stmt: &'life1 Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput<()>, GraphQueryError>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn show_hosts<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput<Host>, GraphQueryError>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Source

fn show_spaces<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput<Space>, GraphQueryError>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

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§