pub trait GraphService: Send {
// Required methods
fn authenticate(
&self,
arg_username: &Vec<u8>,
arg_password: &Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthenticateError>> + Send + 'static>>;
fn signout(
&self,
arg_sessionId: i64,
) -> Pin<Box<dyn Future<Output = Result<(), SignoutError>> + Send + 'static>>;
fn execute(
&self,
arg_sessionId: i64,
arg_stmt: &Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<ExecutionResponse, ExecuteError>> + Send + 'static>>;
fn executeJson(
&self,
arg_sessionId: i64,
arg_stmt: &Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ExecuteJsonError>> + Send + 'static>>;
}
Required Methods§
fn authenticate( &self, arg_username: &Vec<u8>, arg_password: &Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthenticateError>> + Send + 'static>>
fn signout( &self, arg_sessionId: i64, ) -> Pin<Box<dyn Future<Output = Result<(), SignoutError>> + Send + 'static>>
fn execute( &self, arg_sessionId: i64, arg_stmt: &Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<ExecutionResponse, ExecuteError>> + Send + 'static>>
fn executeJson( &self, arg_sessionId: i64, arg_stmt: &Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ExecuteJsonError>> + Send + 'static>>
Implementations§
Source§impl dyn GraphService
To be called by user directly setting up a client. Avoids
needing ClientFactory trait in scope, avoids unidiomatic
make_Trait name.
impl dyn GraphService
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);