Struct oasis_core_runtime::enclave_rpc::context::Context
source · pub struct Context<'a> {
pub identity: Arc<Identity>,
pub is_secure: bool,
pub session_info: Option<Arc<SessionInfo>>,
pub consensus_verifier: Arc<dyn Verifier>,
pub runtime: Box<dyn Any>,
pub untrusted_local_storage: &'a dyn KeyValue,
}
Expand description
RPC call context.
Fields§
§identity: Arc<Identity>
The current runtime identity if any.
is_secure: bool
Whether the RPC call is using a secure channel.
session_info: Option<Arc<SessionInfo>>
Information about the session the RPC call was delivered over.
consensus_verifier: Arc<dyn Verifier>
Consensus verifier.
runtime: Box<dyn Any>
Runtime-specific context.
untrusted_local_storage: &'a dyn KeyValue
Untrusted local storage.
Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> !Send for Context<'a>
impl<'a> !Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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