[][src]Trait nebula_graph_fbthrift_storage_v2::client::GraphStorageService

pub trait GraphStorageService: Send {
    fn getNeighbors(
        &self,
        arg_req: &GetNeighborsRequest
    ) -> Pin<Box<dyn Future<Output = Result<GetNeighborsResponse, GetNeighborsError>> + Send + 'static>>;
fn getProps(
        &self,
        arg_req: &GetPropRequest
    ) -> Pin<Box<dyn Future<Output = Result<GetPropResponse, GetPropsError>> + Send + 'static>>;
fn addVertices(
        &self,
        arg_req: &AddVerticesRequest
    ) -> Pin<Box<dyn Future<Output = Result<ExecResponse, AddVerticesError>> + Send + 'static>>;
fn addEdges(
        &self,
        arg_req: &AddEdgesRequest
    ) -> Pin<Box<dyn Future<Output = Result<ExecResponse, AddEdgesError>> + Send + 'static>>;
fn deleteEdges(
        &self,
        arg_req: &DeleteEdgesRequest
    ) -> Pin<Box<dyn Future<Output = Result<ExecResponse, DeleteEdgesError>> + Send + 'static>>;
fn deleteVertices(
        &self,
        arg_req: &DeleteVerticesRequest
    ) -> Pin<Box<dyn Future<Output = Result<ExecResponse, DeleteVerticesError>> + Send + 'static>>;
fn updateVertex(
        &self,
        arg_req: &UpdateVertexRequest
    ) -> Pin<Box<dyn Future<Output = Result<UpdateResponse, UpdateVertexError>> + Send + 'static>>;
fn updateEdge(
        &self,
        arg_req: &UpdateEdgeRequest
    ) -> Pin<Box<dyn Future<Output = Result<UpdateResponse, UpdateEdgeError>> + Send + 'static>>;
fn getUUID(
        &self,
        arg_req: &GetUUIDReq
    ) -> Pin<Box<dyn Future<Output = Result<GetUUIDResp, GetUUIDError>> + Send + 'static>>;
fn lookupIndex(
        &self,
        arg_req: &LookupIndexRequest
    ) -> Pin<Box<dyn Future<Output = Result<LookupIndexResp, LookupIndexError>> + Send + 'static>>;
fn lookupAndTraverse(
        &self,
        arg_req: &LookupAndTraverseRequest
    ) -> Pin<Box<dyn Future<Output = Result<GetNeighborsResponse, LookupAndTraverseError>> + Send + 'static>>; }

Required methods

fn getNeighbors(
    &self,
    arg_req: &GetNeighborsRequest
) -> Pin<Box<dyn Future<Output = Result<GetNeighborsResponse, GetNeighborsError>> + Send + 'static>>

fn getProps(
    &self,
    arg_req: &GetPropRequest
) -> Pin<Box<dyn Future<Output = Result<GetPropResponse, GetPropsError>> + Send + 'static>>

fn addVertices(
    &self,
    arg_req: &AddVerticesRequest
) -> Pin<Box<dyn Future<Output = Result<ExecResponse, AddVerticesError>> + Send + 'static>>

fn addEdges(
    &self,
    arg_req: &AddEdgesRequest
) -> Pin<Box<dyn Future<Output = Result<ExecResponse, AddEdgesError>> + Send + 'static>>

fn deleteEdges(
    &self,
    arg_req: &DeleteEdgesRequest
) -> Pin<Box<dyn Future<Output = Result<ExecResponse, DeleteEdgesError>> + Send + 'static>>

fn deleteVertices(
    &self,
    arg_req: &DeleteVerticesRequest
) -> Pin<Box<dyn Future<Output = Result<ExecResponse, DeleteVerticesError>> + Send + 'static>>

fn updateVertex(
    &self,
    arg_req: &UpdateVertexRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateResponse, UpdateVertexError>> + Send + 'static>>

fn updateEdge(
    &self,
    arg_req: &UpdateEdgeRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateResponse, UpdateEdgeError>> + Send + 'static>>

fn getUUID(
    &self,
    arg_req: &GetUUIDReq
) -> Pin<Box<dyn Future<Output = Result<GetUUIDResp, GetUUIDError>> + Send + 'static>>

fn lookupIndex(
    &self,
    arg_req: &LookupIndexRequest
) -> Pin<Box<dyn Future<Output = Result<LookupIndexResp, LookupIndexError>> + Send + 'static>>

fn lookupAndTraverse(
    &self,
    arg_req: &LookupAndTraverseRequest
) -> Pin<Box<dyn Future<Output = Result<GetNeighborsResponse, LookupAndTraverseError>> + Send + 'static>>

Loading content...

Implementations

impl dyn GraphStorageService[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 GraphStorageService + Send + 'static> where
    P: Protocol<Frame = T>,
    T: Transport
[src]

impl dyn GraphStorageService[src]

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

Implementors

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

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

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

Loading content...