pub struct AddFd {
pub fd: usize,
pub set: usize,
pub opaque: Option<ShellString>,
}Expand description
Add a file descriptor to a fd set.
Fields§
§fd: usizeThis option defines the file descriptor of which a duplicate is added to fd set. The file descriptor cannot be stdin, stdout, or stderr.
set: usizeThis option defines the ID of the fd set to add the file descriptor to.
opaque: Option<ShellString>This option defines a free-form string that can be used to describe fd.
Implementations§
Trait Implementations§
Source§impl Arbitrary for AddFd
impl Arbitrary for AddFd
Source§type Parameters = (<usize as Arbitrary>::Parameters, <usize as Arbitrary>::Parameters, <Option<ShellString> as Arbitrary>::Parameters)
type Parameters = (<usize as Arbitrary>::Parameters, <usize as Arbitrary>::Parameters, <Option<ShellString> 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<(<usize as Arbitrary>::Strategy, <usize as Arbitrary>::Strategy, <Option<ShellString> as Arbitrary>::Strategy), fn((usize, usize, Option<ShellString>)) -> AddFd>
type Strategy = Map<(<usize as Arbitrary>::Strategy, <usize as Arbitrary>::Strategy, <Option<ShellString> as Arbitrary>::Strategy), fn((usize, usize, Option<ShellString>)) -> AddFd>
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 Ord for AddFd
impl Ord for AddFd
Source§impl PartialOrd for AddFd
impl PartialOrd for AddFd
Source§impl ToCommand for AddFd
impl ToCommand for AddFd
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()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 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 AddFd
impl StructuralPartialEq for AddFd
Auto Trait Implementations§
impl Freeze for AddFd
impl RefUnwindSafe for AddFd
impl Send for AddFd
impl Sync for AddFd
impl Unpin for AddFd
impl UnsafeUnpin for AddFd
impl UnwindSafe for AddFd
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