Struct libuv::handles::process::StdioFlags
source · pub struct StdioFlags { /* private fields */ }
Expand description
Flags specifying how a stdio should be transmitted to the child process.
Implementations§
source§impl StdioFlags
impl StdioFlags
sourcepub const IGNORE: StdioFlags = _
pub const IGNORE: StdioFlags = _
No file descriptor will be provided (or redirected to /dev/null
if it is fd 0, 1 or
2).
sourcepub const CREATE_PIPE: StdioFlags = _
pub const CREATE_PIPE: StdioFlags = _
Open a new pipe into data.stream
, per the flags below. The data.stream
field must
point to a PipeHandle object that has been initialized with new
, but not yet opened
or connected.
sourcepub const INHERIT_FD: StdioFlags = _
pub const INHERIT_FD: StdioFlags = _
The child process will be given a duplicate of the parent’s file descriptor given by
data.fd
.
sourcepub const INHERIT_STREAM: StdioFlags = _
pub const INHERIT_STREAM: StdioFlags = _
The child process will be given a duplicate of the parent’s file descriptor being used
by the stream handle given by data.stream
.
sourcepub const READABLE_PIPE: StdioFlags = _
pub const READABLE_PIPE: StdioFlags = _
When UV_CREATE_PIPE is specified, UV_READABLE_PIPE and UV_WRITABLE_PIPE determine the direction of flow, from the child process’ perspective. Both flags may be specified to create a duplex data stream.
pub const WRITABLE_PIPE: StdioFlags = _
sourcepub const OVERLAPPED_PIPE: StdioFlags = _
pub const OVERLAPPED_PIPE: StdioFlags = _
Open the child pipe handle in overlapped mode on Windows. On Unix it is silently ignored.
sourcepub const fn empty() -> StdioFlags
pub const fn empty() -> StdioFlags
Returns an empty set of flags
sourcepub const fn all() -> StdioFlags
pub const fn all() -> StdioFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<StdioFlags>
pub fn from_bits(bits: u32) -> Option<StdioFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> StdioFlags
pub const fn from_bits_truncate(bits: u32) -> StdioFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> StdioFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> StdioFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: StdioFlags) -> bool
pub const fn intersects(&self, other: StdioFlags) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: StdioFlags) -> bool
pub const fn contains(&self, other: StdioFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: StdioFlags)
pub fn insert(&mut self, other: StdioFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: StdioFlags)
pub fn remove(&mut self, other: StdioFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: StdioFlags)
pub fn toggle(&mut self, other: StdioFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: StdioFlags, value: bool)
pub fn set(&mut self, other: StdioFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
source§impl Binary for StdioFlags
impl Binary for StdioFlags
source§impl BitAnd for StdioFlags
impl BitAnd for StdioFlags
source§fn bitand(self, other: StdioFlags) -> StdioFlags
fn bitand(self, other: StdioFlags) -> StdioFlags
Returns the intersection between the two sets of flags.
§type Output = StdioFlags
type Output = StdioFlags
&
operator.source§impl BitAndAssign for StdioFlags
impl BitAndAssign for StdioFlags
source§fn bitand_assign(&mut self, other: StdioFlags)
fn bitand_assign(&mut self, other: StdioFlags)
Disables all flags disabled in the set.
source§impl BitOr for StdioFlags
impl BitOr for StdioFlags
source§fn bitor(self, other: StdioFlags) -> StdioFlags
fn bitor(self, other: StdioFlags) -> StdioFlags
Returns the union of the two sets of flags.
§type Output = StdioFlags
type Output = StdioFlags
|
operator.source§impl BitOrAssign for StdioFlags
impl BitOrAssign for StdioFlags
source§fn bitor_assign(&mut self, other: StdioFlags)
fn bitor_assign(&mut self, other: StdioFlags)
Adds the set of flags.
source§impl BitXor for StdioFlags
impl BitXor for StdioFlags
source§fn bitxor(self, other: StdioFlags) -> StdioFlags
fn bitxor(self, other: StdioFlags) -> StdioFlags
Returns the left flags, but with all the right flags toggled.
§type Output = StdioFlags
type Output = StdioFlags
^
operator.source§impl BitXorAssign for StdioFlags
impl BitXorAssign for StdioFlags
source§fn bitxor_assign(&mut self, other: StdioFlags)
fn bitxor_assign(&mut self, other: StdioFlags)
Toggles the set of flags.
source§impl Clone for StdioFlags
impl Clone for StdioFlags
source§fn clone(&self) -> StdioFlags
fn clone(&self) -> StdioFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StdioFlags
impl Debug for StdioFlags
source§impl Default for StdioFlags
impl Default for StdioFlags
source§impl Extend<StdioFlags> for StdioFlags
impl Extend<StdioFlags> for StdioFlags
source§fn extend<T: IntoIterator<Item = StdioFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = StdioFlags>>(&mut self, iterator: T)
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl FromIterator<StdioFlags> for StdioFlags
impl FromIterator<StdioFlags> for StdioFlags
source§fn from_iter<T: IntoIterator<Item = StdioFlags>>(iterator: T) -> StdioFlags
fn from_iter<T: IntoIterator<Item = StdioFlags>>(iterator: T) -> StdioFlags
source§impl Hash for StdioFlags
impl Hash for StdioFlags
source§impl LowerHex for StdioFlags
impl LowerHex for StdioFlags
source§impl Not for StdioFlags
impl Not for StdioFlags
source§fn not(self) -> StdioFlags
fn not(self) -> StdioFlags
Returns the complement of this set of flags.
§type Output = StdioFlags
type Output = StdioFlags
!
operator.source§impl Octal for StdioFlags
impl Octal for StdioFlags
source§impl Ord for StdioFlags
impl Ord for StdioFlags
source§fn cmp(&self, other: &StdioFlags) -> Ordering
fn cmp(&self, other: &StdioFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for StdioFlags
impl PartialEq for StdioFlags
source§fn eq(&self, other: &StdioFlags) -> bool
fn eq(&self, other: &StdioFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StdioFlags
impl PartialOrd for StdioFlags
source§fn partial_cmp(&self, other: &StdioFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &StdioFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Sub for StdioFlags
impl Sub for StdioFlags
source§fn sub(self, other: StdioFlags) -> StdioFlags
fn sub(self, other: StdioFlags) -> StdioFlags
Returns the set difference of the two sets of flags.
§type Output = StdioFlags
type Output = StdioFlags
-
operator.source§impl SubAssign for StdioFlags
impl SubAssign for StdioFlags
source§fn sub_assign(&mut self, other: StdioFlags)
fn sub_assign(&mut self, other: StdioFlags)
Disables all flags enabled in the set.