pub struct DgraphClient { /* private fields */ }Trait Implementations§
Source§impl ClientStub for DgraphClient
impl ClientStub for DgraphClient
Source§fn with_client(grpc_client: Arc<Client>) -> Self
fn with_client(grpc_client: Arc<Client>) -> Self
Create a client stub using given
Client object.Source§impl Dgraph for DgraphClient
impl Dgraph for DgraphClient
fn login(&self, o: RequestOptions, p: LoginRequest) -> SingleResponse<Response>
fn query(&self, o: RequestOptions, p: Request) -> SingleResponse<Response>
fn alter(&self, o: RequestOptions, p: Operation) -> SingleResponse<Payload>
fn commit_or_abort( &self, o: RequestOptions, p: TxnContext, ) -> SingleResponse<TxnContext>
fn check_version(&self, o: RequestOptions, p: Check) -> SingleResponse<Version>
Auto Trait Implementations§
impl Freeze for DgraphClient
impl !RefUnwindSafe for DgraphClient
impl Send for DgraphClient
impl Sync for DgraphClient
impl Unpin for DgraphClient
impl UnsafeUnpin for DgraphClient
impl !UnwindSafe for DgraphClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<C> ClientStubExt for Cwhere
C: ClientStub,
impl<C> ClientStubExt for Cwhere
C: ClientStub,
Source§fn new_plain(host: &str, port: u16, conf: ClientConf) -> Result<C, Error>
fn new_plain(host: &str, port: u16, conf: ClientConf) -> Result<C, Error>
Create a plain (non-encrypted) client connected to specified host and port
Source§fn new_tls<T>(host: &str, port: u16, conf: ClientConf) -> Result<C, Error>where
T: TlsConnector,
fn new_tls<T>(host: &str, port: u16, conf: ClientConf) -> Result<C, Error>where
T: TlsConnector,
Create a client connected to specified host and port using TLS.
Source§fn new_plain_unix(addr: &str, conf: ClientConf) -> Result<C, Error>
fn new_plain_unix(addr: &str, conf: ClientConf) -> Result<C, Error>
Create a client connected to specified unix socket.