pub struct TypedPluginHandle<P: Plugin> { /* private fields */ }Expand description
A typed handle to a registered Plugin.
Use Self::lock to access the plugin.
Implementations§
Source§impl<P: Plugin> TypedPluginHandle<P>
impl<P: Plugin> TypedPluginHandle<P>
Sourcepub fn lock(&self) -> TypedPluginGuard<'_, P>
pub fn lock(&self) -> TypedPluginGuard<'_, P>
Lock the plugin for access.
Returns a guard that dereferences to the plugin.
Auto Trait Implementations§
impl<P> Freeze for TypedPluginHandle<P>
impl<P> !RefUnwindSafe for TypedPluginHandle<P>
impl<P> Send for TypedPluginHandle<P>
impl<P> Sync for TypedPluginHandle<P>
impl<P> Unpin for TypedPluginHandle<P>where
P: Unpin,
impl<P> UnsafeUnpin for TypedPluginHandle<P>
impl<P> !UnwindSafe for TypedPluginHandle<P>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more