pub enum ClientMessage {
Show 13 variants
Hello {
extra: BoltDict,
},
Logon {
auth: BoltDict,
},
Logoff,
Goodbye,
Reset,
Run {
query: String,
parameters: BoltDict,
extra: BoltDict,
},
Pull {
extra: BoltDict,
},
Discard {
extra: BoltDict,
},
Begin {
extra: BoltDict,
},
Commit,
Rollback,
Route {
routing: BoltDict,
bookmarks: Vec<String>,
extra: BoltDict,
},
Telemetry {
api: i64,
},
}Expand description
A message sent from the client to the server.
Variants§
Hello
Initialize connection. Sent once after handshake.
Logon
Authenticate after HELLO (Bolt 5.1+).
Logoff
De-authenticate (Bolt 5.1+).
Goodbye
Gracefully close the connection.
Reset
Reset the connection to a clean state, aborting any pending work.
Run
Execute a query (auto-commit or within a transaction).
Pull
Pull results from the last RUN.
Discard
Discard results from the last RUN.
Begin
Begin an explicit transaction.
Commit
Commit the current explicit transaction.
Rollback
Roll back the current explicit transaction.
Route
Request routing table for cluster-aware drivers (Bolt 5.2+).
Telemetry
Client telemetry data (Bolt 5.4+). Server may safely ignore.
Implementations§
Source§impl ClientMessage
impl ClientMessage
Trait Implementations§
Source§impl Clone for ClientMessage
impl Clone for ClientMessage
Source§fn clone(&self) -> ClientMessage
fn clone(&self) -> ClientMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientMessage
impl Debug for ClientMessage
Source§impl Display for ClientMessage
impl Display for ClientMessage
Source§impl PartialEq for ClientMessage
impl PartialEq for ClientMessage
impl StructuralPartialEq for ClientMessage
Auto Trait Implementations§
impl Freeze for ClientMessage
impl RefUnwindSafe for ClientMessage
impl Send for ClientMessage
impl Sync for ClientMessage
impl Unpin for ClientMessage
impl UnsafeUnpin for ClientMessage
impl UnwindSafe for ClientMessage
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