pub struct EngineContext {
pub session: Uuid,
pub transaction: Option<Uuid>,
}Expand description
Which session, and which explicit transaction, a request applies to.
Mirrors the RequestContext every request carries in the SurrealDB
network protocol, minus the fields the SDK does not populate: an engine
applies its own configured timeouts rather than being told them per call.
Fields§
§session: UuidThe session the request runs under.
transaction: Option<Uuid>The explicit transaction to run in, or None for an implicit one.
Only meaningful on SurrealEngine::query; the transaction-lifecycle
methods take the transaction they act on as an explicit argument.
Implementations§
Trait Implementations§
Source§impl Clone for EngineContext
impl Clone for EngineContext
impl Copy for EngineContext
Auto Trait Implementations§
impl Freeze for EngineContext
impl RefUnwindSafe for EngineContext
impl Send for EngineContext
impl Sync for EngineContext
impl Unpin for EngineContext
impl UnsafeUnpin for EngineContext
impl UnwindSafe for EngineContext
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