pub struct Passthrough { /* private fields */ }Expand description
A -tpmdev passthrough,... backend.
Implementations§
Source§impl Passthrough
impl Passthrough
Sourcepub fn builder() -> PassthroughBuilder
pub fn builder() -> PassthroughBuilder
Create an instance of Passthrough using the builder syntax
Trait Implementations§
Source§impl Arbitrary for Passthrough
impl Arbitrary for Passthrough
Source§type Parameters = (<String as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy), fn((String, Option<PathBuf>, Option<PathBuf>)) -> Passthrough>
type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy), fn((String, Option<PathBuf>, Option<PathBuf>)) -> Passthrough>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for Passthrough
impl Clone for Passthrough
Source§fn clone(&self) -> Passthrough
fn clone(&self) -> Passthrough
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 Passthrough
impl Debug for Passthrough
Source§impl Default for Passthrough
impl Default for Passthrough
Source§fn default() -> Passthrough
fn default() -> Passthrough
Returns the “default value” for a type. Read more
Source§impl FromStr for Passthrough
impl FromStr for Passthrough
Source§impl Hash for Passthrough
impl Hash for Passthrough
Source§impl Ord for Passthrough
impl Ord for Passthrough
Source§fn cmp(&self, other: &Passthrough) -> Ordering
fn cmp(&self, other: &Passthrough) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Passthrough
impl PartialEq for Passthrough
Source§impl PartialOrd for Passthrough
impl PartialOrd for Passthrough
Source§impl ToCommand for Passthrough
impl ToCommand for Passthrough
Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
Convert to a type suitable to pass to
std::process::Command::args()fn has_args(&self) -> bool
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Construct the full command in keep in pieces
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
Construct the full command as a single
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
Construct only the args as a single
Stringimpl Eq for Passthrough
impl StructuralPartialEq for Passthrough
Auto Trait Implementations§
impl Freeze for Passthrough
impl RefUnwindSafe for Passthrough
impl Send for Passthrough
impl Sync for Passthrough
impl Unpin for Passthrough
impl UnsafeUnpin for Passthrough
impl UnwindSafe for Passthrough
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