[][src]Trait nebula_graph_fbthrift_storage::client::StorageService

pub trait StorageService: Send {
    fn getBound(
        &self,
        arg_req: &GetNeighborsRequest
    ) -> Pin<Box<dyn Future<Output = Result<QueryResponse, GetBoundError>> + Send + 'static>>;
fn boundStats(
        &self,
        arg_req: &GetNeighborsRequest
    ) -> Pin<Box<dyn Future<Output = Result<QueryStatsResponse, BoundStatsError>> + Send + 'static>>;
fn getProps(
        &self,
        arg_req: &VertexPropRequest
    ) -> Pin<Box<dyn Future<Output = Result<QueryResponse, GetPropsError>> + Send + 'static>>;
fn getEdgeProps(
        &self,
        arg_req: &EdgePropRequest
    ) -> Pin<Box<dyn Future<Output = Result<EdgePropResponse, GetEdgePropsError>> + 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 scanEdge(
        &self,
        arg_req: &ScanEdgeRequest
    ) -> Pin<Box<dyn Future<Output = Result<ScanEdgeResponse, ScanEdgeError>> + Send + 'static>>;
fn scanVertex(
        &self,
        arg_req: &ScanVertexRequest
    ) -> Pin<Box<dyn Future<Output = Result<ScanVertexResponse, ScanVertexError>> + Send + 'static>>;
fn transLeader(
        &self,
        arg_req: &TransLeaderReq
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, TransLeaderError>> + Send + 'static>>;
fn addPart(
        &self,
        arg_req: &AddPartReq
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, AddPartError>> + Send + 'static>>;
fn addLearner(
        &self,
        arg_req: &AddLearnerReq
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, AddLearnerError>> + Send + 'static>>;
fn waitingForCatchUpData(
        &self,
        arg_req: &CatchUpDataReq
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, WaitingForCatchUpDataError>> + Send + 'static>>;
fn removePart(
        &self,
        arg_req: &RemovePartReq
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, RemovePartError>> + Send + 'static>>;
fn memberChange(
        &self,
        arg_req: &MemberChangeReq
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, MemberChangeError>> + Send + 'static>>;
fn checkPeers(
        &self,
        arg_req: &CheckPeersReq
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, CheckPeersError>> + Send + 'static>>;
fn getLeaderPart(
        &self,
        arg_req: &GetLeaderReq
    ) -> Pin<Box<dyn Future<Output = Result<GetLeaderResp, GetLeaderPartError>> + Send + 'static>>;
fn createCheckpoint(
        &self,
        arg_req: &CreateCPRequest
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, CreateCheckpointError>> + Send + 'static>>;
fn dropCheckpoint(
        &self,
        arg_req: &DropCPRequest
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, DropCheckpointError>> + Send + 'static>>;
fn blockingWrites(
        &self,
        arg_req: &BlockingSignRequest
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, BlockingWritesError>> + Send + 'static>>;
fn rebuildTagIndex(
        &self,
        arg_req: &RebuildIndexRequest
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, RebuildTagIndexError>> + Send + 'static>>;
fn rebuildEdgeIndex(
        &self,
        arg_req: &RebuildIndexRequest
    ) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, RebuildEdgeIndexError>> + Send + 'static>>;
fn put(
        &self,
        arg_req: &PutRequest
    ) -> Pin<Box<dyn Future<Output = Result<ExecResponse, PutError>> + Send + 'static>>;
fn get(
        &self,
        arg_req: &GetRequest
    ) -> Pin<Box<dyn Future<Output = Result<GeneralResponse, GetError>> + Send + 'static>>;
fn remove(
        &self,
        arg_req: &RemoveRequest
    ) -> Pin<Box<dyn Future<Output = Result<ExecResponse, RemoveError>> + Send + 'static>>;
fn removeRange(
        &self,
        arg_req: &RemoveRangeRequest
    ) -> Pin<Box<dyn Future<Output = Result<ExecResponse, RemoveRangeError>> + 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>>; }

Required methods

fn getBound(
    &self,
    arg_req: &GetNeighborsRequest
) -> Pin<Box<dyn Future<Output = Result<QueryResponse, GetBoundError>> + Send + 'static>>

fn boundStats(
    &self,
    arg_req: &GetNeighborsRequest
) -> Pin<Box<dyn Future<Output = Result<QueryStatsResponse, BoundStatsError>> + Send + 'static>>

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

fn getEdgeProps(
    &self,
    arg_req: &EdgePropRequest
) -> Pin<Box<dyn Future<Output = Result<EdgePropResponse, GetEdgePropsError>> + 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 scanEdge(
    &self,
    arg_req: &ScanEdgeRequest
) -> Pin<Box<dyn Future<Output = Result<ScanEdgeResponse, ScanEdgeError>> + Send + 'static>>

fn scanVertex(
    &self,
    arg_req: &ScanVertexRequest
) -> Pin<Box<dyn Future<Output = Result<ScanVertexResponse, ScanVertexError>> + Send + 'static>>

fn transLeader(
    &self,
    arg_req: &TransLeaderReq
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, TransLeaderError>> + Send + 'static>>

fn addPart(
    &self,
    arg_req: &AddPartReq
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, AddPartError>> + Send + 'static>>

fn addLearner(
    &self,
    arg_req: &AddLearnerReq
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, AddLearnerError>> + Send + 'static>>

fn waitingForCatchUpData(
    &self,
    arg_req: &CatchUpDataReq
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, WaitingForCatchUpDataError>> + Send + 'static>>

fn removePart(
    &self,
    arg_req: &RemovePartReq
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, RemovePartError>> + Send + 'static>>

fn memberChange(
    &self,
    arg_req: &MemberChangeReq
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, MemberChangeError>> + Send + 'static>>

fn checkPeers(
    &self,
    arg_req: &CheckPeersReq
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, CheckPeersError>> + Send + 'static>>

fn getLeaderPart(
    &self,
    arg_req: &GetLeaderReq
) -> Pin<Box<dyn Future<Output = Result<GetLeaderResp, GetLeaderPartError>> + Send + 'static>>

fn createCheckpoint(
    &self,
    arg_req: &CreateCPRequest
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, CreateCheckpointError>> + Send + 'static>>

fn dropCheckpoint(
    &self,
    arg_req: &DropCPRequest
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, DropCheckpointError>> + Send + 'static>>

fn blockingWrites(
    &self,
    arg_req: &BlockingSignRequest
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, BlockingWritesError>> + Send + 'static>>

fn rebuildTagIndex(
    &self,
    arg_req: &RebuildIndexRequest
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, RebuildTagIndexError>> + Send + 'static>>

fn rebuildEdgeIndex(
    &self,
    arg_req: &RebuildIndexRequest
) -> Pin<Box<dyn Future<Output = Result<AdminExecResp, RebuildEdgeIndexError>> + Send + 'static>>

fn put(
    &self,
    arg_req: &PutRequest
) -> Pin<Box<dyn Future<Output = Result<ExecResponse, PutError>> + Send + 'static>>

fn get(
    &self,
    arg_req: &GetRequest
) -> Pin<Box<dyn Future<Output = Result<GeneralResponse, GetError>> + Send + 'static>>

fn remove(
    &self,
    arg_req: &RemoveRequest
) -> Pin<Box<dyn Future<Output = Result<ExecResponse, RemoveError>> + Send + 'static>>

fn removeRange(
    &self,
    arg_req: &RemoveRangeRequest
) -> Pin<Box<dyn Future<Output = Result<ExecResponse, RemoveRangeError>> + 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>>

Loading content...

Implementations

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

impl dyn StorageService[src]

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

Implementors

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

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

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

Loading content...