pub struct Plugin {
pub executable: String,
pub config_path: PathBuf,
pub auth_dir: PathBuf,
}Fields§
§executable: String§config_path: PathBuf§auth_dir: PathBufImplementations§
Source§impl Plugin
impl Plugin
pub fn resolve(store: &Store, name: &str, entry: &PluginEntry) -> Self
Sourcepub fn auth_check(&self) -> bool
pub fn auth_check(&self) -> bool
Check if the plugin’s auth is valid. Returns true if auth is good, false if expired/missing. Plugin diagnostics (if any) are rendered before the warning, so a plugin that explains why auth is missing via the diagnostics channel gets its message surfaced.
Auto Trait Implementations§
impl Freeze for Plugin
impl RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl UnsafeUnpin for Plugin
impl UnwindSafe for Plugin
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