Struct gremlin_client::GremlinClient
source · pub struct GremlinClient { /* private fields */ }
Implementations
sourceimpl GremlinClient
impl GremlinClient
pub fn close_session(&mut self) -> GremlinResult<GResultSet>
sourceimpl GremlinClient
impl GremlinClient
pub fn connect<T>(options: T) -> GremlinResult<GremlinClient>where
T: Into<ConnectionOptions>,
pub fn create_session(&mut self, name: String) -> GremlinResult<GremlinClient>
sourcepub fn alias<T>(&self, alias: T) -> GremlinClientwhere
T: Into<String>,
pub fn alias<T>(&self, alias: T) -> GremlinClientwhere
T: Into<String>,
Return a cloned client with the provided alias
pub fn execute<T>(
&self,
script: T,
params: &[(&str, &dyn ToGValue)]
) -> GremlinResult<GResultSet>where
T: Into<String>,
pub fn generate_message(
&self,
bytecode: &Bytecode
) -> GremlinResult<Message<Value>>
Trait Implementations
sourceimpl Clone for GremlinClient
impl Clone for GremlinClient
sourcefn clone(&self) -> GremlinClient
fn clone(&self) -> GremlinClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for GremlinClient
impl Send for GremlinClient
impl Sync for GremlinClient
impl Unpin for GremlinClient
impl !UnwindSafe for GremlinClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more