pub struct TimeoutContext {
pub id: InstanceId,
pub elapsed_ms: u64,
pub deadline_ms: u64,
}Expand description
Payload for ExecError::Timeout. Carries the real elapsed and deadline
figures captured when the epoch interrupt fired so the error mapping
layer can surface them through tensor_wasm_core::error::TensorWasmError::KernelTimeout.
Fields§
§id: InstanceIdInstance that exceeded its deadline.
elapsed_ms: u64Wall-clock milliseconds the call took before being interrupted.
deadline_ms: u64Configured per-call deadline in milliseconds.
Trait Implementations§
Source§impl Clone for TimeoutContext
impl Clone for TimeoutContext
Source§fn clone(&self) -> TimeoutContext
fn clone(&self) -> TimeoutContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeoutContext
Source§impl Debug for TimeoutContext
impl Debug for TimeoutContext
Auto Trait Implementations§
impl Freeze for TimeoutContext
impl RefUnwindSafe for TimeoutContext
impl Send for TimeoutContext
impl Sync for TimeoutContext
impl Unpin for TimeoutContext
impl UnsafeUnpin for TimeoutContext
impl UnwindSafe for TimeoutContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more