pub struct RootlesskitBackend(/* private fields */);
Expand description
A rootless backend for running commands using rootlesskit.
Trait Implementations§
Source§impl Clone for RootlesskitBackend
impl Clone for RootlesskitBackend
Source§fn clone(&self) -> RootlesskitBackend
fn clone(&self) -> RootlesskitBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RootlesskitBackend
impl Debug for RootlesskitBackend
Source§impl RootlessBackend<RootlesskitOptions> for RootlesskitBackend
impl RootlessBackend<RootlesskitOptions> for RootlesskitBackend
Source§fn new(options: RootlesskitOptions) -> Self
fn new(options: RootlesskitOptions) -> Self
Creates a new RootlesskitBackend
from RootlesskitOptions
.
Source§fn options(&self) -> &RootlesskitOptions
fn options(&self) -> &RootlesskitOptions
Returns the RootlesskitOptions
used by the RootlesskitBackend
.
Source§fn run(&self, cmd: &[&str]) -> Result<Output, Self::Err>
fn run(&self, cmd: &[&str]) -> Result<Output, Self::Err>
Runs a command using rootlesskit and returns its Output
.
§Errors
Returns an error if
- the rootlesskit command cannot be found,
- or the provided
command
cannot be run using rootlesskit.
Auto Trait Implementations§
impl Freeze for RootlesskitBackend
impl RefUnwindSafe for RootlesskitBackend
impl Send for RootlesskitBackend
impl Sync for RootlesskitBackend
impl Unpin for RootlesskitBackend
impl UnwindSafe for RootlesskitBackend
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