pub enum LifecycleState {
Created,
Initialized,
Running,
Stopped,
Unloaded,
Error,
}Expand description
Plugin lifecycle state.
Variants§
Created
Plugin has been created but not initialized.
Initialized
Plugin has been initialized with an engine.
Running
Plugin is running and accepting calls.
Stopped
Plugin has been stopped.
Unloaded
Plugin has been unloaded.
Error
Plugin is in an error state.
Implementations§
Source§impl LifecycleState
impl LifecycleState
Sourcepub fn can_reload(&self) -> bool
pub fn can_reload(&self) -> bool
Check if the plugin can be reloaded.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if the plugin is in a terminal state.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a human-readable description.
Trait Implementations§
Source§impl Clone for LifecycleState
impl Clone for LifecycleState
Source§fn clone(&self) -> LifecycleState
fn clone(&self) -> LifecycleState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifecycleState
impl Debug for LifecycleState
Source§impl Display for LifecycleState
impl Display for LifecycleState
Source§impl Hash for LifecycleState
impl Hash for LifecycleState
Source§impl PartialEq for LifecycleState
impl PartialEq for LifecycleState
impl Copy for LifecycleState
impl Eq for LifecycleState
impl StructuralPartialEq for LifecycleState
Auto Trait Implementations§
impl Freeze for LifecycleState
impl RefUnwindSafe for LifecycleState
impl Send for LifecycleState
impl Sync for LifecycleState
impl Unpin for LifecycleState
impl UnwindSafe for LifecycleState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.