Struct fuchsia_zircon::Signals
[−]
#[repr(C)]pub struct Signals { /* fields omitted */ }
Signals that can be waited upon.
See Objects and signals in the Zircon kernel documentation. Note: the names of signals are still in flux.
Methods
impl Signals
const NONE: Signals
NONE: Signals = Signals{bits: ZX_SIGNAL_NONE,}
const OBJECT_ALL: Signals
OBJECT_ALL: Signals = Signals{bits: ZX_OBJECT_SIGNAL_ALL,}
const USER_ALL: Signals
USER_ALL: Signals = Signals{bits: ZX_USER_SIGNAL_ALL,}
const OBJECT_0: Signals
OBJECT_0: Signals = Signals{bits: ZX_OBJECT_SIGNAL_0,}
const OBJECT_1: Signals
OBJECT_1: Signals = Signals{bits: ZX_OBJECT_SIGNAL_1,}
const OBJECT_2: Signals
OBJECT_2: Signals = Signals{bits: ZX_OBJECT_SIGNAL_2,}
const OBJECT_3: Signals
OBJECT_3: Signals = Signals{bits: ZX_OBJECT_SIGNAL_3,}
const OBJECT_4: Signals
OBJECT_4: Signals = Signals{bits: ZX_OBJECT_SIGNAL_4,}
const OBJECT_5: Signals
OBJECT_5: Signals = Signals{bits: ZX_OBJECT_SIGNAL_5,}
const OBJECT_6: Signals
OBJECT_6: Signals = Signals{bits: ZX_OBJECT_SIGNAL_6,}
const OBJECT_7: Signals
OBJECT_7: Signals = Signals{bits: ZX_OBJECT_SIGNAL_7,}
const OBJECT_8: Signals
OBJECT_8: Signals = Signals{bits: ZX_OBJECT_SIGNAL_8,}
const OBJECT_9: Signals
OBJECT_9: Signals = Signals{bits: ZX_OBJECT_SIGNAL_9,}
const OBJECT_10: Signals
OBJECT_10: Signals = Signals{bits: ZX_OBJECT_SIGNAL_10,}
const OBJECT_11: Signals
OBJECT_11: Signals = Signals{bits: ZX_OBJECT_SIGNAL_11,}
const OBJECT_12: Signals
OBJECT_12: Signals = Signals{bits: ZX_OBJECT_SIGNAL_12,}
const OBJECT_13: Signals
OBJECT_13: Signals = Signals{bits: ZX_OBJECT_SIGNAL_13,}
const OBJECT_14: Signals
OBJECT_14: Signals = Signals{bits: ZX_OBJECT_SIGNAL_14,}
const OBJECT_15: Signals
OBJECT_15: Signals = Signals{bits: ZX_OBJECT_SIGNAL_15,}
const OBJECT_16: Signals
OBJECT_16: Signals = Signals{bits: ZX_OBJECT_SIGNAL_16,}
const OBJECT_17: Signals
OBJECT_17: Signals = Signals{bits: ZX_OBJECT_SIGNAL_17,}
const OBJECT_18: Signals
OBJECT_18: Signals = Signals{bits: ZX_OBJECT_SIGNAL_18,}
const OBJECT_19: Signals
OBJECT_19: Signals = Signals{bits: ZX_OBJECT_SIGNAL_19,}
const OBJECT_20: Signals
OBJECT_20: Signals = Signals{bits: ZX_OBJECT_SIGNAL_20,}
const OBJECT_21: Signals
OBJECT_21: Signals = Signals{bits: ZX_OBJECT_SIGNAL_21,}
const OBJECT_22: Signals
OBJECT_22: Signals = Signals{bits: ZX_OBJECT_SIGNAL_22,}
const OBJECT_HANDLE_CLOSED: Signals
OBJECT_HANDLE_CLOSED: Signals = Signals{bits: ZX_OBJECT_HANDLE_CLOSED,}
const USER_0: Signals
USER_0: Signals = Signals{bits: ZX_USER_SIGNAL_0,}
const USER_1: Signals
USER_1: Signals = Signals{bits: ZX_USER_SIGNAL_1,}
const USER_2: Signals
USER_2: Signals = Signals{bits: ZX_USER_SIGNAL_2,}
const USER_3: Signals
USER_3: Signals = Signals{bits: ZX_USER_SIGNAL_3,}
const USER_4: Signals
USER_4: Signals = Signals{bits: ZX_USER_SIGNAL_4,}
const USER_5: Signals
USER_5: Signals = Signals{bits: ZX_USER_SIGNAL_5,}
const USER_6: Signals
USER_6: Signals = Signals{bits: ZX_USER_SIGNAL_6,}
const USER_7: Signals
USER_7: Signals = Signals{bits: ZX_USER_SIGNAL_7,}
const OBJECT_READABLE: Signals
OBJECT_READABLE: Signals = Signals{bits: ZX_OBJECT_READABLE,}
const OBJECT_WRITABLE: Signals
OBJECT_WRITABLE: Signals = Signals{bits: ZX_OBJECT_WRITABLE,}
const OBJECT_PEER_CLOSED: Signals
OBJECT_PEER_CLOSED: Signals = Signals{bits: ZX_OBJECT_PEER_CLOSED,}
const HANDLE_CLOSED: Signals
HANDLE_CLOSED: Signals = Signals{bits: ZX_SIGNAL_HANDLE_CLOSED,}
const EVENT_SIGNALED: Signals
EVENT_SIGNALED: Signals = Signals{bits: ZX_EVENT_SIGNALED,}
const EVENT_PAIR_SIGNALED: Signals
EVENT_PAIR_SIGNALED: Signals = Signals{bits: ZX_EPAIR_SIGNALED,}
const EVENT_PAIR_CLOSED: Signals
EVENT_PAIR_CLOSED: Signals = Signals{bits: ZX_EPAIR_CLOSED,}
const TASK_TERMINATED: Signals
TASK_TERMINATED: Signals = Signals{bits: ZX_TASK_TERMINATED,}
const CHANNEL_READABLE: Signals
CHANNEL_READABLE: Signals = Signals{bits: ZX_CHANNEL_READABLE,}
const CHANNEL_WRITABLE: Signals
CHANNEL_WRITABLE: Signals = Signals{bits: ZX_CHANNEL_WRITABLE,}
const CHANNEL_PEER_CLOSED: Signals
CHANNEL_PEER_CLOSED: Signals = Signals{bits: ZX_CHANNEL_PEER_CLOSED,}
const SOCKET_READABLE: Signals
SOCKET_READABLE: Signals = Signals{bits: ZX_SOCKET_READABLE,}
const SOCKET_WRITABLE: Signals
SOCKET_WRITABLE: Signals = Signals{bits: ZX_SOCKET_WRITABLE,}
const SOCKET_PEER_CLOSED: Signals
SOCKET_PEER_CLOSED: Signals = Signals{bits: ZX_SOCKET_PEER_CLOSED,}
const PORT_READABLE: Signals
PORT_READABLE: Signals = Signals{bits: ZX_PORT_READABLE,}
const RESOURCE_DESTROYED: Signals
RESOURCE_DESTROYED: Signals = Signals{bits: ZX_RESOURCE_DESTROYED,}
const RESOURCE_READABLE: Signals
RESOURCE_READABLE: Signals = Signals{bits: ZX_RESOURCE_READABLE,}
const RESOURCE_WRITABLE: Signals
RESOURCE_WRITABLE: Signals = Signals{bits: ZX_RESOURCE_WRITABLE,}
const RESOURCE_CHILD_ADDED: Signals
RESOURCE_CHILD_ADDED: Signals = Signals{bits: ZX_RESOURCE_CHILD_ADDED,}
const FIFO_READABLE: Signals
FIFO_READABLE: Signals = Signals{bits: ZX_FIFO_READABLE,}
const FIFO_WRITABLE: Signals
FIFO_WRITABLE: Signals = Signals{bits: ZX_FIFO_WRITABLE,}
const FIFO_PEER_CLOSED: Signals
FIFO_PEER_CLOSED: Signals = Signals{bits: ZX_FIFO_PEER_CLOSED,}
const JOB_NO_PROCESSES: Signals
JOB_NO_PROCESSES: Signals = Signals{bits: ZX_JOB_NO_PROCESSES,}
const JOB_NO_JOBS: Signals
JOB_NO_JOBS: Signals = Signals{bits: ZX_JOB_NO_JOBS,}
const PROCESS_TERMINATED: Signals
PROCESS_TERMINATED: Signals = Signals{bits: ZX_PROCESS_TERMINATED,}
const THREAD_TERMINATED: Signals
THREAD_TERMINATED: Signals = Signals{bits: ZX_THREAD_TERMINATED,}
const LOG_READABLE: Signals
LOG_READABLE: Signals = Signals{bits: ZX_LOG_READABLE,}
const LOG_WRITABLE: Signals
LOG_WRITABLE: Signals = Signals{bits: ZX_LOG_WRITABLE,}
const TIMER_SIGNALED: Signals
TIMER_SIGNALED: Signals = Signals{bits: ZX_TIMER_SIGNALED,}
fn empty() -> Signals
Returns an empty set of flags.
fn all() -> Signals
Returns the set containing all flags.
fn bits(&self) -> zx_signals_t
Returns the raw value of the flags currently stored.
fn from_bits(bits: zx_signals_t) -> Option<Signals>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: zx_signals_t) -> Signals
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: Signals) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: Signals) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: Signals)
Inserts the specified flags in-place.
fn remove(&mut self, other: Signals)
Removes the specified flags in-place.
fn toggle(&mut self, other: Signals)
Toggles the specified flags in-place.
fn set(&mut self, other: Signals, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for Signals
impl PartialEq for Signals
fn eq(&self, __arg_0: &Signals) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Signals) -> bool
This method tests for !=
.
impl Eq for Signals
impl Clone for Signals
fn clone(&self) -> Signals
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for Signals
fn partial_cmp(&self, __arg_0: &Signals) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Signals) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Signals) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Signals) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Signals) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Signals
fn cmp(&self, __arg_0: &Signals) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for Signals
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Signals
impl Binary for Signals
impl Octal for Signals
impl LowerHex for Signals
impl UpperHex for Signals
impl BitOr for Signals
type Output = Signals
The resulting type after applying the |
operator.
fn bitor(self, other: Signals) -> Signals
Returns the union of the two sets of flags.
impl BitOrAssign for Signals
fn bitor_assign(&mut self, other: Signals)
Adds the set of flags.
impl BitXor for Signals
type Output = Signals
The resulting type after applying the ^
operator.
fn bitxor(self, other: Signals) -> Signals
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for Signals
fn bitxor_assign(&mut self, other: Signals)
Toggles the set of flags.
impl BitAnd for Signals
type Output = Signals
The resulting type after applying the &
operator.
fn bitand(self, other: Signals) -> Signals
Returns the intersection between the two sets of flags.
impl BitAndAssign for Signals
fn bitand_assign(&mut self, other: Signals)
Disables all flags disabled in the set.
impl Sub for Signals
type Output = Signals
The resulting type after applying the -
operator.
fn sub(self, other: Signals) -> Signals
Returns the set difference of the two sets of flags.
impl SubAssign for Signals
fn sub_assign(&mut self, other: Signals)
Disables all flags enabled in the set.
impl Not for Signals
type Output = Signals
The resulting type after applying the !
operator.
fn not(self) -> Signals
Returns the complement of this set of flags.
impl Extend<Signals> for Signals
fn extend<T: IntoIterator<Item = Signals>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<Signals> for Signals
fn from_iter<T: IntoIterator<Item = Signals>>(iterator: T) -> Signals
Creates a value from an iterator. Read more