pub struct LoreInstaller { /* private fields */ }Expand description
Lore installer for managing Lore CLI and server installation
Implementations§
Source§impl LoreInstaller
impl LoreInstaller
Sourcepub fn with_version(self, version: &str) -> Self
pub fn with_version(self, version: &str) -> Self
Set custom version
Sourcepub fn install_cli(&self) -> Result<()>
pub fn install_cli(&self) -> Result<()>
Install Lore CLI (only if not already installed with correct version)
Sourcepub fn install_server(&self) -> Result<()>
pub fn install_server(&self) -> Result<()>
Install Lore server (only if not already installed with correct version)
Sourcepub fn install_all(&self) -> Result<()>
pub fn install_all(&self) -> Result<()>
Install both CLI and server (only if not already installed with correct versions)
Sourcepub fn verify_installation(&self) -> Result<VerificationResult>
pub fn verify_installation(&self) -> Result<VerificationResult>
Verify installation
Sourcepub fn add_to_path(&self) -> Result<()>
pub fn add_to_path(&self) -> Result<()>
Add install directory to PATH
Auto Trait Implementations§
impl Freeze for LoreInstaller
impl RefUnwindSafe for LoreInstaller
impl Send for LoreInstaller
impl Sync for LoreInstaller
impl Unpin for LoreInstaller
impl UnsafeUnpin for LoreInstaller
impl UnwindSafe for LoreInstaller
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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