pub struct RemoteClient(/* private fields */);Expand description
Remote Query API or Bolt connection. Plain connections are restricted to loopback addresses;
remote connections require mutual TLS. Bolt requests require Query::with_project.
Implementations§
Source§impl RemoteClient
impl RemoteClient
pub fn api(endpoint: &str) -> Result<Self>
pub fn bolt(endpoint: &str) -> Result<Self>
pub fn api_mtls(endpoint: &str, tls: &MutualTls) -> Result<Self>
pub fn bolt_mtls(endpoint: &str, tls: &MutualTls) -> Result<Self>
pub fn query(&self, query: Query) -> Result<QueryResult>
pub fn close(self) -> Result<()>
Auto Trait Implementations§
impl Forget for RemoteClient
impl Freeze for RemoteClient
impl RefUnwindSafe for RemoteClient
impl Send for RemoteClient
impl Sync for RemoteClient
impl Unpin for RemoteClient
impl UnsafeUnpin for RemoteClient
impl UnwindSafe for RemoteClient
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