pub struct RuntimeContext {
pub target_id: RuntimeId,
pub runtime: Runtime,
pub error_tx: Sender<Error>,
}
Expand description
Task-local execution context for RPC calls.
Holds the current target runtime ID, a shared reference to the Runtime
,
and a channel to report internal errors during RPC processing.
Fields§
§target_id: RuntimeId
The identifier of the runtime that RPC calls are targeting.
runtime: Runtime
Shared reference to the runtime instance handling messages.
error_tx: Sender<Error>
Sender for internal error reporting within the execution scope.
Trait Implementations§
Source§impl Clone for RuntimeContext
impl Clone for RuntimeContext
Source§fn clone(&self) -> RuntimeContext
fn clone(&self) -> RuntimeContext
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for RuntimeContext
impl !RefUnwindSafe for RuntimeContext
impl Send for RuntimeContext
impl Sync for RuntimeContext
impl Unpin for RuntimeContext
impl !UnwindSafe for RuntimeContext
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