pub enum PluginSource {
Official,
User,
}Expand description
Where the plugin came from. Trust policy is deliberately separate from registration structure and flow compatibility. 插件来源。信任策略与注册结构、数据流兼容性刻意分离。
Variants§
Official
Published and signed by the official distribution. 由官方分发渠道发布并签名。
User
Supplied by a user or a third party. 由用户或第三方提供。
Trait Implementations§
Source§impl Clone for PluginSource
impl Clone for PluginSource
Source§fn clone(&self) -> PluginSource
fn clone(&self) -> PluginSource
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 moreimpl Copy for PluginSource
Source§impl Debug for PluginSource
impl Debug for PluginSource
impl Eq for PluginSource
Source§impl Ord for PluginSource
impl Ord for PluginSource
Source§fn cmp(&self, other: &PluginSource) -> Ordering
fn cmp(&self, other: &PluginSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PluginSource
impl PartialEq for PluginSource
Source§impl PartialOrd for PluginSource
impl PartialOrd for PluginSource
impl StructuralPartialEq for PluginSource
Auto Trait Implementations§
impl Freeze for PluginSource
impl RefUnwindSafe for PluginSource
impl Send for PluginSource
impl Sync for PluginSource
impl Unpin for PluginSource
impl UnsafeUnpin for PluginSource
impl UnwindSafe for PluginSource
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