[−][src]Trait nebula_fbthrift_graph::client::GraphService
Required methods
pub fn authenticate(
&self,
arg_username: &str,
arg_password: &str
) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthenticateError>> + Send + 'static>>
[src]
&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>>
[src]
&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>>
[src]
&self,
arg_sessionId: i64,
arg_stmt: &str
) -> Pin<Box<dyn Future<Output = Result<ExecutionResponse, ExecuteError>> + Send + 'static>>
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]
protocol: P,
transport: T
) -> Arc<impl GraphService + Send + 'static> where
P: Protocol<Frame = T>,
T: Transport,
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]
T: AsRef<dyn GraphService + 'a>,
T: Send,
pub fn authenticate(
&self,
arg_username: &str,
arg_password: &str
) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthenticateError>> + Send + 'static>>
[src]
&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>>
[src]
&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>>
[src]
&self,
arg_sessionId: i64,
arg_stmt: &str
) -> Pin<Box<dyn Future<Output = Result<ExecutionResponse, ExecuteError>> + Send + 'static>>
impl<'mock> GraphService for GraphService<'mock>
[src]
pub fn authenticate(
&self,
arg_username: &str,
arg_password: &str
) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthenticateError>> + Send + 'static>>
[src]
&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>>
[src]
&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>>
[src]
&self,
arg_sessionId: i64,
arg_stmt: &str
) -> Pin<Box<dyn Future<Output = Result<ExecutionResponse, ExecuteError>> + Send + 'static>>
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]
P: Protocol,
T: Transport,
P::Frame: Framing<DecBuf = FramingDecoded<T>>,
ProtocolEncoded<P>: BufMutExt<Final = FramingEncodedFinal<T>>,
pub fn authenticate(
&self,
arg_username: &str,
arg_password: &str
) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthenticateError>> + Send + 'static>>
[src]
&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>>
[src]
&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>>
[src]
&self,
arg_sessionId: i64,
arg_stmt: &str
) -> Pin<Box<dyn Future<Output = Result<ExecutionResponse, ExecuteError>> + Send + 'static>>