pub struct Runtime<Ctx: Clone = ()> {
pub context: Ctx,
pub store: Option<Arc<dyn BaseStore>>,
pub stream_writer: Option<StreamWriter>,
pub previous: Option<Value>,
pub execution_info: Option<ExecutionInfo>,
pub server_info: Option<ServerInfo>,
}Expand description
Runtime context for graph execution
Fields§
§context: CtxRun-scoped immutable context (user_id, db_conn, etc.)
store: Option<Arc<dyn BaseStore>>Persistence/memory store
stream_writer: Option<StreamWriter>Channel sender for custom streaming
previous: Option<Value>Previous return value (functional API)
execution_info: Option<ExecutionInfo>Execution metadata
server_info: Option<ServerInfo>Server metadata
Trait Implementations§
Auto Trait Implementations§
impl<Ctx = ()> !RefUnwindSafe for Runtime<Ctx>
impl<Ctx = ()> !UnwindSafe for Runtime<Ctx>
impl<Ctx> Freeze for Runtime<Ctx>where
Ctx: Freeze,
impl<Ctx> Send for Runtime<Ctx>where
Ctx: Send,
impl<Ctx> Sync for Runtime<Ctx>where
Ctx: Sync,
impl<Ctx> Unpin for Runtime<Ctx>where
Ctx: Unpin,
impl<Ctx> UnsafeUnpin for Runtime<Ctx>where
Ctx: UnsafeUnpin,
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