pub struct SingleConnSession<T = AsyncTransport<Compat<TcpStream>, Sleep, GraphTransportResponseHandler>>where
T: Transport + Framing<DecBuf = Cursor<Bytes>>,
Bytes: Framing<DecBuf = <T as Framing>::DecBuf>,
<<BinaryProtocol as Protocol>::Frame as Framing>::EncBuf: BufMutExt<Final = <<T as Framing>::EncBuf as BufMutExt>::Final>,{ /* private fields */ }
Implementations§
source§impl<T> SingleConnSession<T>
impl<T> SingleConnSession<T>
Trait Implementations§
source§impl<T> GraphQuery for SingleConnSession<T>
impl<T> GraphQuery for SingleConnSession<T>
type Error = SingleConnSessionError
source§fn query<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stmt: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stmt: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<GraphQueryOutput, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute stmt and return the query output. Read more
source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stmt: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stmt: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute stmt and doesn’t return the execution output.
fn show_hosts<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Host>, Self::Error>> + 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<Vec<Space>, Self::Error>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<T> Freeze for SingleConnSession<T>where
T: Freeze,
impl<T> RefUnwindSafe for SingleConnSession<T>where
T: RefUnwindSafe,
impl<T> Send for SingleConnSession<T>
impl<T> Sync for SingleConnSession<T>
impl<T> Unpin for SingleConnSession<T>where
T: Unpin,
impl<T> UnwindSafe for SingleConnSession<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more