Struct oasis_core_runtime::enclave_rpc::dispatcher::Dispatcher
source · pub struct Dispatcher { /* private fields */ }
Expand description
RPC call dispatcher.
Implementations§
source§impl Dispatcher
impl Dispatcher
sourcepub fn add_method(&mut self, method: Method)
pub fn add_method(&mut self, method: Method)
Register a new method in the dispatcher.
sourcepub fn set_context_initializer<I>(&mut self, initializer: I)
pub fn set_context_initializer<I>(&mut self, initializer: I)
Configure context initializer.
sourcepub fn dispatch(
&self,
ctx: Context<'_>,
request: Request,
kind: Kind
) -> Response
pub fn dispatch( &self, ctx: Context<'_>, request: Request, kind: Kind ) -> Response
Dispatch request.
sourcepub fn handle_km_status_update(&self, status: KeyManagerStatus)
pub fn handle_km_status_update(&self, status: KeyManagerStatus)
Handle key manager status update.
sourcepub fn handle_km_quote_policy_update(&self, policy: QuotePolicy)
pub fn handle_km_quote_policy_update(&self, policy: QuotePolicy)
Handle key manager quote policy update.
sourcepub fn set_keymanager_status_update_handler(
&mut self,
f: Option<Box<KeyManagerStatusHandler>>
)
pub fn set_keymanager_status_update_handler( &mut self, f: Option<Box<KeyManagerStatusHandler>> )
Update key manager status update handler.
sourcepub fn set_keymanager_quote_policy_update_handler(
&mut self,
f: Option<Box<KeyManagerQuotePolicyHandler>>
)
pub fn set_keymanager_quote_policy_update_handler( &mut self, f: Option<Box<KeyManagerQuotePolicyHandler>> )
Update key manager quote policy update handler.
Trait Implementations§
source§impl Default for Dispatcher
impl Default for Dispatcher
source§fn default() -> Dispatcher
fn default() -> Dispatcher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Dispatcher
impl Send for Dispatcher
impl Sync for Dispatcher
impl Unpin for Dispatcher
impl !UnwindSafe for Dispatcher
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