pub struct InputStreams(/* private fields */);Expand description
A set of input streams.
Used in poll host-call.
Implementations§
Source§impl InputStreams
impl InputStreams
pub const SERVICE_MESSAGES: InputStreams
pub const HOST_MESSAGES: InputStreams
pub const CONSOLE: InputStreams
pub const VIDEO: InputStreams
pub const AUDIO: InputStreams
pub const TRANSACTIONS: InputStreams
Source§impl InputStreams
impl InputStreams
Sourcepub const fn empty() -> InputStreams
pub const fn empty() -> InputStreams
Get a flags value with all bits unset.
Sourcepub const fn all() -> InputStreams
pub const fn all() -> InputStreams
Get a flags value with all known bits set.
Sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u32) -> Option<InputStreams>
pub const fn from_bits(bits: u32) -> Option<InputStreams>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u32) -> InputStreams
pub const fn from_bits_truncate(bits: u32) -> InputStreams
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u32) -> InputStreams
pub const fn from_bits_retain(bits: u32) -> InputStreams
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<InputStreams>
pub fn from_name(name: &str) -> Option<InputStreams>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(&self, other: InputStreams) -> bool
pub const fn intersects(&self, other: InputStreams) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: InputStreams) -> bool
pub const fn contains(&self, other: InputStreams) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn insert(&mut self, other: InputStreams)
pub fn insert(&mut self, other: InputStreams)
The bitwise or (|) of the bits in two flags values.
Sourcepub fn remove(&mut self, other: InputStreams)
pub fn remove(&mut self, other: InputStreams)
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
Sourcepub fn toggle(&mut self, other: InputStreams)
pub fn toggle(&mut self, other: InputStreams)
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub fn set(&mut self, other: InputStreams, value: bool)
pub fn set(&mut self, other: InputStreams, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(self, other: InputStreams) -> InputStreams
pub const fn intersection(self, other: InputStreams) -> InputStreams
The bitwise and (&) of the bits in two flags values.
Sourcepub const fn union(self, other: InputStreams) -> InputStreams
pub const fn union(self, other: InputStreams) -> InputStreams
The bitwise or (|) of the bits in two flags values.
Sourcepub const fn difference(self, other: InputStreams) -> InputStreams
pub const fn difference(self, other: InputStreams) -> InputStreams
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Sourcepub const fn symmetric_difference(self, other: InputStreams) -> InputStreams
pub const fn symmetric_difference(self, other: InputStreams) -> InputStreams
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub const fn complement(self) -> InputStreams
pub const fn complement(self) -> InputStreams
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§impl InputStreams
impl InputStreams
Sourcepub const fn iter(&self) -> Iter<InputStreams> ⓘ
pub const fn iter(&self) -> Iter<InputStreams> ⓘ
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<InputStreams> ⓘ
pub const fn iter_names(&self) -> IterNames<InputStreams> ⓘ
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
Source§impl Binary for InputStreams
impl Binary for InputStreams
Source§impl BitAnd for InputStreams
impl BitAnd for InputStreams
Source§fn bitand(self, other: InputStreams) -> InputStreams
fn bitand(self, other: InputStreams) -> InputStreams
The bitwise and (&) of the bits in two flags values.
Source§type Output = InputStreams
type Output = InputStreams
& operator.Source§impl BitAndAssign for InputStreams
impl BitAndAssign for InputStreams
Source§fn bitand_assign(&mut self, other: InputStreams)
fn bitand_assign(&mut self, other: InputStreams)
The bitwise and (&) of the bits in two flags values.
Source§impl BitOr for InputStreams
impl BitOr for InputStreams
Source§fn bitor(self, other: InputStreams) -> InputStreams
fn bitor(self, other: InputStreams) -> InputStreams
The bitwise or (|) of the bits in two flags values.
Source§type Output = InputStreams
type Output = InputStreams
| operator.Source§impl BitOrAssign for InputStreams
impl BitOrAssign for InputStreams
Source§fn bitor_assign(&mut self, other: InputStreams)
fn bitor_assign(&mut self, other: InputStreams)
The bitwise or (|) of the bits in two flags values.
Source§impl BitXor for InputStreams
impl BitXor for InputStreams
Source§fn bitxor(self, other: InputStreams) -> InputStreams
fn bitxor(self, other: InputStreams) -> InputStreams
The bitwise exclusive-or (^) of the bits in two flags values.
Source§type Output = InputStreams
type Output = InputStreams
^ operator.Source§impl BitXorAssign for InputStreams
impl BitXorAssign for InputStreams
Source§fn bitxor_assign(&mut self, other: InputStreams)
fn bitxor_assign(&mut self, other: InputStreams)
The bitwise exclusive-or (^) of the bits in two flags values.
Source§impl Clone for InputStreams
impl Clone for InputStreams
Source§fn clone(&self) -> InputStreams
fn clone(&self) -> InputStreams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl ConstEncodedLen for InputStreams
codec only.impl Copy for InputStreams
Source§impl Debug for InputStreams
impl Debug for InputStreams
Source§impl Decode for InputStreams
Available on crate feature codec only.
impl Decode for InputStreams
codec only.Source§fn decode<I>(input: &mut I) -> Result<InputStreams, Error>where
I: Input,
fn decode<I>(input: &mut I) -> Result<InputStreams, Error>where
I: Input,
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Source§impl Encode for InputStreams
Available on crate feature codec only.
impl Encode for InputStreams
codec only.Source§fn encode_to<T>(&self, output: &mut T)
fn encode_to<T>(&self, output: &mut T)
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
impl Eq for InputStreams
Source§impl Extend<InputStreams> for InputStreams
impl Extend<InputStreams> for InputStreams
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = InputStreams>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = InputStreams>,
The bitwise or (|) of the bits in each flags value.
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 Flags for InputStreams
impl Flags for InputStreams
Source§const FLAGS: &'static [Flag<InputStreams>]
const FLAGS: &'static [Flag<InputStreams>]
Source§fn from_bits_retain(bits: u32) -> InputStreams
fn from_bits_retain(bits: u32) -> InputStreams
Source§fn known_bits(&self) -> Self::Bits
fn known_bits(&self) -> Self::Bits
Source§fn unknown_bits(&self) -> Self::Bits
fn unknown_bits(&self) -> Self::Bits
Source§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.Source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
Source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
Source§fn iter_names(&self) -> IterNames<Self> ⓘ
fn iter_names(&self) -> IterNames<Self> ⓘ
Source§fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
Self::FLAGS.Source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in two flags values.Source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!). Read moreSource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in two flags values.Source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in two flags values.Source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!). Read moreSource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in two flags values.Source§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in a flags value, truncating the result.Source§impl FromIterator<InputStreams> for InputStreams
impl FromIterator<InputStreams> for InputStreams
Source§fn from_iter<T>(iterator: T) -> InputStreamswhere
T: IntoIterator<Item = InputStreams>,
fn from_iter<T>(iterator: T) -> InputStreamswhere
T: IntoIterator<Item = InputStreams>,
The bitwise or (|) of the bits in each flags value.
Source§impl IntoIterator for InputStreams
impl IntoIterator for InputStreams
Source§type Item = InputStreams
type Item = InputStreams
Source§type IntoIter = Iter<InputStreams>
type IntoIter = Iter<InputStreams>
Source§fn into_iter(self) -> <InputStreams as IntoIterator>::IntoIter
fn into_iter(self) -> <InputStreams as IntoIterator>::IntoIter
Source§impl LowerHex for InputStreams
impl LowerHex for InputStreams
Source§impl MaxEncodedLen for InputStreams
Available on crate feature codec only.
impl MaxEncodedLen for InputStreams
codec only.Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Source§impl Not for InputStreams
impl Not for InputStreams
Source§fn not(self) -> InputStreams
fn not(self) -> InputStreams
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§type Output = InputStreams
type Output = InputStreams
! operator.Source§impl Octal for InputStreams
impl Octal for InputStreams
Source§impl PartialEq for InputStreams
impl PartialEq for InputStreams
impl StructuralPartialEq for InputStreams
Source§impl Sub for InputStreams
impl Sub for InputStreams
Source§fn sub(self, other: InputStreams) -> InputStreams
fn sub(self, other: InputStreams) -> InputStreams
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Source§type Output = InputStreams
type Output = InputStreams
- operator.Source§impl SubAssign for InputStreams
impl SubAssign for InputStreams
Source§fn sub_assign(&mut self, other: InputStreams)
fn sub_assign(&mut self, other: InputStreams)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.