Struct ispm_wrapper::Internal
source · pub struct Internal;
Expand description
Minimal implementation of internal ISPM functionality to use it externally
Implementations§
source§impl Internal
impl Internal
pub(crate) const PRODUCT_NAME: &'static str = "Intel Simics Package Manager"
pub(crate) const CFG_FILENAME: &'static str = "simics-package-manager.cfg"
sourcepub(crate) fn app_data_path() -> Result<PathBuf>
pub(crate) fn app_data_path() -> Result<PathBuf>
Retrieve the path to the directory containing ISPM’s application data, in particular the configuration file.
sourcepub fn cfg_file_path() -> Result<PathBuf>
pub fn cfg_file_path() -> Result<PathBuf>
Retrieve the path to the ISPM configuration file
sourcepub fn is_internal() -> Result<bool>
pub fn is_internal() -> Result<bool>
Returns whether this is an internal release of ISPM
Auto Trait Implementations§
impl Freeze for Internal
impl RefUnwindSafe for Internal
impl Send for Internal
impl Sync for Internal
impl Unpin for Internal
impl UnwindSafe for Internal
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more