pub struct PluginRoot {
pub hint: PluginHint,
pub content: LockedContent,
pub named: bool,
}Expand description
A marketplace plugin as acquired: kept with the rooted package so that preparing it again (a restart pass) reads it through the same marketplace entry, never a fresh fetch.
Fields§
§hint: PluginHint§content: LockedContent§named: boolThe dependency named this plugin; otherwise its marketplace lists only this one.
Implementations§
Source§impl PluginRoot
impl PluginRoot
pub fn name(&self) -> &str
Sourcepub fn locked_name(&self) -> Option<&str>
pub fn locked_name(&self) -> Option<&str>
The plugin the lock records: only one the dependency named, so a lock written for a dependency that never named one (v0.19.0’s) still describes it.
Sourcepub fn locked_content(&self) -> Option<&LockedContent>
pub fn locked_content(&self) -> Option<&LockedContent>
Where the plugin’s files came from, when the lock must say: for a plugin the dependency named, or one in another repository, which a later sync fetches again by this record. An only plugin in the marketplace’s own tree is the marketplace’s commit and needs none.
Trait Implementations§
Source§impl Clone for PluginRoot
impl Clone for PluginRoot
Auto Trait Implementations§
impl Forget for PluginRoot
impl Freeze for PluginRoot
impl Move for PluginRoot
impl RefUnwindSafe for PluginRoot
impl Send for PluginRootwhere
RawVecInner: Send,
impl Sync for PluginRootwhere
RawVecInner: Sync,
impl Unpin for PluginRoot
impl UnsafeUnpin for PluginRootwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for PluginRootwhere
RawVecInner: UnwindSafe,
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