pub trait RootlessBackend<T>where
T: RootlessOptions,{
type Err;
// Required methods
fn new(options: T) -> Self
where Self: Sized;
fn options(&self) -> &T;
fn run(&self, command: &[&str]) -> Result<Output, Self::Err>;
}
Expand description
A backend for running a command as root.
Required Associated Types§
Required Methods§
Sourcefn new(options: T) -> Selfwhere
Self: Sized,
fn new(options: T) -> Selfwhere
Self: Sized,
Creates a new RootlessBackend
from a RootlessOptions
.
Sourcefn options(&self) -> &T
fn options(&self) -> &T
Returns the specific RootlessOptions
used for the RootlessBackend
implementation.