pub struct InterpreterContext<C> {
pub request: Option<Request<Vec<u8>>>,
pub response: Option<Response>,
pub runtime: Runtime,
pub cookie: C,
}Expand description
The context for the interpretation of a validated representation of a given piece of Metadata Information.
The cookie (of user-specified type C) can be used to allow access to other data
an interpretation of the MI may update.
TODO: Determine whether the runtime can be factored out (made generic).
Fields§
§request: Option<Request<Vec<u8>>>§response: Option<Response>§runtime: RuntimeTrait Implementations§
Auto Trait Implementations§
impl<C> !Freeze for InterpreterContext<C>
impl<C> !RefUnwindSafe for InterpreterContext<C>
impl<C> !UnwindSafe for InterpreterContext<C>
impl<C> Send for InterpreterContext<C>where
C: Send,
impl<C> Sync for InterpreterContext<C>where
C: Sync,
impl<C> Unpin for InterpreterContext<C>where
C: Unpin,
impl<C> UnsafeUnpin for InterpreterContext<C>where
C: 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