[][src]Trait nebula_fbthrift_graph::client::GraphService

pub trait GraphService: Send {
    pub fn authenticate(
        &self,
        arg_username: &str,
        arg_password: &str
    ) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthenticateError>> + Send + 'static>>;
pub fn signout(
        &self,
        arg_sessionId: i64
    ) -> Pin<Box<dyn Future<Output = Result<(), SignoutError>> + Send + 'static>>;
pub fn execute(
        &self,
        arg_sessionId: i64,
        arg_stmt: &str
    ) -> Pin<Box<dyn Future<Output = Result<ExecutionResponse, ExecuteError>> + Send + 'static>>; }

Required methods

pub fn authenticate(
    &self,
    arg_username: &str,
    arg_password: &str
) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthenticateError>> + Send + 'static>>
[src]

pub fn signout(
    &self,
    arg_sessionId: i64
) -> Pin<Box<dyn Future<Output = Result<(), SignoutError>> + Send + 'static>>
[src]

pub fn execute(
    &self,
    arg_sessionId: i64,
    arg_stmt: &str
) -> Pin<Box<dyn Future<Output = Result<ExecutionResponse, ExecuteError>> + Send + 'static>>
[src]

Loading content...

Implementations

impl dyn GraphService[src]

To be called by user directly setting up a client. Avoids needing ClientFactory trait in scope, avoids unidiomatic make_Trait name.

use bgs::client::BuckGraphService;

let protocol = BinaryProtocol::new();
let transport = HttpClient::new();
let client = BuckGraphService::new(protocol, transport);

pub fn new<P, T>(
    protocol: P,
    transport: T
) -> Arc<impl GraphService + Send + 'static> where
    P: Protocol<Frame = T>,
    T: Transport
[src]

impl dyn GraphService[src]

pub fn mock<'mock>() -> GraphService<'mock>[src]

Implementors

impl<'a, T> GraphService for T where
    T: AsRef<dyn GraphService + 'a>,
    T: Send
[src]

impl<'mock> GraphService for GraphService<'mock>[src]

impl<P, T> GraphService for GraphServiceImpl<P, T> where
    P: Protocol,
    T: Transport,
    P::Frame: Framing<DecBuf = FramingDecoded<T>>,
    ProtocolEncoded<P>: BufMutExt<Final = FramingEncodedFinal<T>>, 
[src]

Loading content...