pub struct NoParent;Expand description
A no-op context for plugins that don’t need parent access.
This allows plugins to be instantiated without a parent, useful for testing or standalone operation.
Trait Implementations§
Source§impl HubContext for NoParent
impl HubContext for NoParent
Source§fn resolve_handle<'life0, 'life1, 'async_trait>(
&'life0 self,
_handle: &'life1 Handle,
) -> Pin<Box<dyn Future<Output = Result<PlexusStream, PlexusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_handle<'life0, 'life1, 'async_trait>(
&'life0 self,
_handle: &'life1 Handle,
) -> Pin<Box<dyn Future<Output = Result<PlexusStream, PlexusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve a handle through the parent’s plugin registry. Read more
Source§fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
_params: Value,
) -> Pin<Box<dyn Future<Output = Result<PlexusStream, PlexusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
_params: Value,
) -> Pin<Box<dyn Future<Output = Result<PlexusStream, PlexusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Route a method call through the parent. Read more
Auto Trait Implementations§
impl Freeze for NoParent
impl RefUnwindSafe for NoParent
impl Send for NoParent
impl Sync for NoParent
impl Unpin for NoParent
impl UnsafeUnpin for NoParent
impl UnwindSafe for NoParent
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