pub struct PluginReport { /* private fields */ }
Expand description
A plugin report contains a severity level and a list of messages describing the plugin’s situation (for the Declared state - dynamic library loading errors, for the Loaded state - plugin start errors, etc)
Implementations§
Source§impl PluginReport
impl PluginReport
pub fn new() -> Self
pub fn clear(&mut self)
pub fn get_level(&self) -> PluginReportLevel
pub fn add_error<S: Into<Cow<'static, str>>>(&mut self, error: S)
pub fn add_warning<S: Into<Cow<'static, str>>>(&mut self, warning: S)
pub fn add_info<S: Into<Cow<'static, str>>>(&mut self, message: S)
pub fn messages(&self) -> &[Cow<'static, str>]
Trait Implementations§
Source§impl Clone for PluginReport
impl Clone for PluginReport
Source§fn clone(&self) -> PluginReport
fn clone(&self) -> PluginReport
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 PluginReport
impl Debug for PluginReport
Source§impl Default for PluginReport
impl Default for PluginReport
Source§fn default() -> PluginReport
fn default() -> PluginReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PluginReport
impl<'de> Deserialize<'de> for PluginReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PluginReport
impl PartialEq for PluginReport
Source§impl Serialize for PluginReport
impl Serialize for PluginReport
impl Eq for PluginReport
impl StructuralPartialEq for PluginReport
Auto Trait Implementations§
impl Freeze for PluginReport
impl RefUnwindSafe for PluginReport
impl Send for PluginReport
impl Sync for PluginReport
impl Unpin for PluginReport
impl UnwindSafe for PluginReport
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.