pub struct Declared { /* private fields */ }Expand description
What a plugin declared, and the root to read it from.
Implementations§
Source§impl Declared
impl Declared
Sourcepub fn new(root: &Path, wanted: &[String]) -> Self
pub fn new(root: &Path, wanted: &[String]) -> Self
Take the declarations from one plugin’s manifest.
Sourcepub fn take_notes(&self) -> Vec<String>
pub fn take_notes(&self) -> Vec<String>
Everything worth saying about the reads so far, oldest first.
Collected rather than reported because the loader calls this from inside a plugin’s call, where there is no event sink to hand: the engine drains this once the call returns.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Declared
impl !RefUnwindSafe for Declared
impl !Sync for Declared
impl Send for Declared
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declared
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