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. 由用户或第三方提供。
Implementations§
Source§impl PluginSource
impl PluginSource
Sourcepub fn text(self) -> &'static str
pub fn text(self) -> &'static str
The word a lock line spells for this source. 锁记录为这个来源拼写的词。
This is the one place the spelling lives: the parser below reads it back instead of repeating it, so a lock line this kernel writes can never use a word this kernel would not accept. 这是该词形唯一的所在地:下面的解析器把它读回来,而不是再写一遍,因此内核写出的锁记录 不可能用一个内核自己不接受的词。
Trait Implementations§
Source§impl Clone for PluginSource
impl Clone for PluginSource
impl 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
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