pub struct PluginHandle { /* private fields */ }Expand description
Persistent plugin registration. Its activation may be repeatedly created and disposed as dependency generations change.
Implementations§
Source§impl PluginHandle
impl PluginHandle
pub fn id(&self) -> PluginId
pub fn name(&self) -> &'static str
pub fn status(&self) -> PluginStatus
pub fn subscribe(&self) -> Receiver<PluginStatus>
pub fn diagnostics(&self) -> Vec<PluginDiagnostic>
pub async fn wait_active(&self) -> Result<ActivationId>
pub async fn reload(&self) -> Result<()>
pub async fn retry(&self) -> Result<()>
pub async fn dispose(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for PluginHandle
impl Clone for PluginHandle
Source§fn clone(&self) -> PluginHandle
fn clone(&self) -> PluginHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PluginHandle
impl !UnwindSafe for PluginHandle
impl Freeze for PluginHandle
impl Send for PluginHandle
impl Sync for PluginHandle
impl Unpin for PluginHandle
impl UnsafeUnpin for PluginHandle
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