pub struct Installer { /* private fields */ }Expand description
Installs extensions under a per-user directory: ROOT/<id>/<version>/, ROOT/pins.json
(extension id to author user id) and ROOT/<id>/current (the active version).
Implementations§
Source§impl Installer
impl Installer
Sourcepub fn current(&self, id: &str) -> Result<Option<String>>
pub fn current(&self, id: &str) -> Result<Option<String>>
The active version of id, if installed.
Sourcepub fn inspect(&self, bytes: &[u8]) -> Result<Plan>
pub fn inspect(&self, bytes: &[u8]) -> Result<Plan>
Verifies bytes and compares it with what is installed. Fails if the id is pinned to
another author or the version is not newer.
Sourcepub fn install(&self, plan: Plan) -> Result<Installed>
pub fn install(&self, plan: Plan) -> Result<Installed>
Installs a plan (after the user agreed to its capabilities) and makes it current.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Installer
impl Freeze for Installer
impl Move for Installer
impl RefUnwindSafe for Installer
impl Send for Installer
impl Sync for Installer
impl Unpin for Installer
impl UnsafeUnpin for Installer
impl UnwindSafe for Installer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request