pub struct System<R: Runner> {
pub root: PathBuf,
pub host: Host,
pub runner: R,
}Fields§
§root: PathBuf§host: Host§runner: RImplementations§
Source§impl<R: Runner> System<R>
impl<R: Runner> System<R>
pub fn ensure_account(&mut self) -> Result<Ids, Error>
pub fn remove_account(&mut self) -> Result<(), Error>
pub fn join_group(&mut self, out: &mut impl Write) -> Result<(), Error>
Source§impl<R: Runner> System<R>
impl<R: Runner> System<R>
pub fn render(&self, init: Init) -> Result<Vec<AdapterFile>, Error>
pub fn trusted_binary(&self) -> Result<(), Error>
pub fn registration(&self) -> Result<Registration, Error>
pub fn install(&mut self, init: Init, out: &mut impl Write) -> Result<(), Error>
pub fn update(&mut self, init: Init) -> Result<(), Error>
pub fn uninstall(&mut self, purge: bool) -> Result<(), Error>
pub fn state(&mut self, init: Init) -> Result<Status, Error>
Source§impl<R: Runner> System<R>
impl<R: Runner> System<R>
pub fn execute( &mut self, action: Action, out: &mut impl Write, ) -> Result<(), Error>
pub fn paths(&self) -> Paths
pub fn at(&self, logical: &Path) -> PathBuf
pub fn has_program(&self, name: &str) -> bool
pub fn program(&self, name: &str) -> Result<String, Error>
pub fn exec(&mut self, name: &str, args: &[&str]) -> Result<Outcome, Error>
pub fn query(&mut self, name: &str, args: &[&str]) -> Result<Outcome, Error>
pub fn detect(&self) -> Result<Init, Error>
pub fn choose(&self, choice: InitChoice) -> Result<Init, Error>
pub fn control_address(&self) -> Result<SocketAddr, Error>
Auto Trait Implementations§
impl<R> Freeze for System<R>where
R: Freeze,
impl<R> RefUnwindSafe for System<R>where
R: RefUnwindSafe,
impl<R> Send for System<R>where
R: Send,
impl<R> Sync for System<R>where
R: Sync,
impl<R> Unpin for System<R>where
R: Unpin,
impl<R> UnsafeUnpin for System<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for System<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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 more