pub struct ConfigureContext { /* private fields */ }Expand description
Context representing the configuration of the plugin.
The configuration function is the one annotated with the #[entrypoint] annotation.
Trait Implementations§
Source§impl<H, I> Entrypoint<ConfigureContext, I> for Hwhere
H: IntoHandler<ConfigureContext, I>,
H::Handler: 'static,
H::Output: IntoHandlerResult,
impl<H, I> Entrypoint<ConfigureContext, I> for Hwhere
H: IntoHandler<ConfigureContext, I>,
H::Handler: 'static,
H::Output: IntoHandlerResult,
Source§fn create_root_context(
self,
event_handlers: EventHandlerStack,
context_id: u32,
) -> Box<dyn RootContext>
fn create_root_context( self, event_handlers: EventHandlerStack, context_id: u32, ) -> Box<dyn RootContext>
Generate a
RootContext with the given event handlers and context id.Source§impl FromContext<ConfigureContext> for Clock
impl FromContext<ConfigureContext> for Clock
type Error = AlreadyExtracted<Clock>
fn from_context(context: &ConfigureContext) -> Result<Self, Self::Error>
Source§impl FromContext<ConfigureContext> for Configuration
impl FromContext<ConfigureContext> for Configuration
type Error = Infallible
fn from_context(context: &ConfigureContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Source§impl FromContext<ConfigureContext, Transitive> for GrpcClient
impl FromContext<ConfigureContext, Transitive> for GrpcClient
type Error = Infallible
fn from_context(context: &ConfigureContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Source§impl FromContext<ConfigureContext, Transitive> for Rc<RootReactor>
impl FromContext<ConfigureContext, Transitive> for Rc<RootReactor>
type Error = Infallible
fn from_context(context: &ConfigureContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Source§impl FromContext<ConfigureContext, Transitive> for Rc<dyn Clock>
impl FromContext<ConfigureContext, Transitive> for Rc<dyn Clock>
type Error = Infallible
fn from_context(context: &ConfigureContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Source§impl FromContext<ConfigureContext, Transitive> for Rc<dyn Host>
impl FromContext<ConfigureContext, Transitive> for Rc<dyn Host>
type Error = Infallible
fn from_context(context: &ConfigureContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
type Error = Infallible
fn from_context(context: &ConfigureContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Source§impl FromContextOnce<ConfigureContext> for Launcher
impl FromContextOnce<ConfigureContext> for Launcher
type Error = Infallible
type Future<'c> = Ready<Result<Launcher, <Launcher as FromContextOnce<ConfigureContext>>::Error>>
fn from_context_once( context: Exclusive<'_, ConfigureContext>, ) -> Self::Future<'_>
Auto Trait Implementations§
impl !Freeze for ConfigureContext
impl !RefUnwindSafe for ConfigureContext
impl !Send for ConfigureContext
impl !Sync for ConfigureContext
impl Unpin for ConfigureContext
impl !UnwindSafe for ConfigureContext
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