pub struct PluginRootSnapshot { /* private fields */ }Expand description
Filesystem-independent snapshot of one plugins/ directory.
Implementations§
Source§impl PluginRootSnapshot
impl PluginRootSnapshot
pub fn new( releases: impl IntoIterator<Item = PluginDescriptor>, instances: impl IntoIterator<Item = PluginRootInstance>, disabled: impl IntoIterator<Item = PluginInstanceId>, ) -> Self
pub fn releases(&self) -> &[PluginDescriptor]
Sourcepub fn with_dependency_choices(self, choices: Vec<DependencyChoice>) -> Self
pub fn with_dependency_choices(self, choices: Vec<DependencyChoice>) -> Self
Adopts named dependency selection with an exact persisted choice set.
pub fn dependency_choices(&self) -> &[DependencyChoice]
Sourcepub const fn dependency_selection_adopted(&self) -> bool
pub const fn dependency_selection_adopted(&self) -> bool
Reports whether this Root has adopted persisted named dependency choices.
pub fn instances(&self) -> &[PluginRootInstance]
pub fn disabled(&self) -> &[PluginInstanceId]
Trait Implementations§
Source§impl Clone for PluginRootSnapshot
impl Clone for PluginRootSnapshot
Source§fn clone(&self) -> PluginRootSnapshot
fn clone(&self) -> PluginRootSnapshot
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 moreSource§impl Debug for PluginRootSnapshot
impl Debug for PluginRootSnapshot
Source§impl Default for PluginRootSnapshot
impl Default for PluginRootSnapshot
Source§fn default() -> PluginRootSnapshot
fn default() -> PluginRootSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PluginRootSnapshot
impl<'de> Deserialize<'de> for PluginRootSnapshot
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 PluginRootSnapshot
impl PartialEq for PluginRootSnapshot
Source§impl Serialize for PluginRootSnapshot
impl Serialize for PluginRootSnapshot
impl StructuralPartialEq for PluginRootSnapshot
Auto Trait Implementations§
impl Freeze for PluginRootSnapshot
impl RefUnwindSafe for PluginRootSnapshot
impl Send for PluginRootSnapshot
impl Sync for PluginRootSnapshot
impl Unpin for PluginRootSnapshot
impl UnsafeUnpin for PluginRootSnapshot
impl UnwindSafe for PluginRootSnapshot
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