Enum zircon_object::task::ThreadState[][src]

pub enum ThreadState {
    New,
    Running,
    Suspended,
    Blocked,
    Dying,
    Dead,
    BlockedException,
    BlockedSleeping,
    BlockedFutex,
    BlockedPort,
    BlockedChannel,
    BlockedWaitOne,
    BlockedWaitMany,
    BlockedInterrupt,
    BlockedPager,
}

The thread state.

Variants

New

The thread has been created but it has not started running yet.

Running

The thread is running user code normally.

Suspended

Stopped due to zx_task_suspend().

Blocked

In a syscall or handling an exception.

Dying

The thread is in the process of being terminated, but it has not been stopped yet.

Dead

The thread has stopped running.

BlockedException

The thread is stopped in an exception.

BlockedSleeping

The thread is stopped in zx_nanosleep().

BlockedFutex

The thread is stopped in zx_futex_wait().

BlockedPort

The thread is stopped in zx_port_wait().

BlockedChannel

The thread is stopped in zx_channel_call().

BlockedWaitOne

The thread is stopped in zx_object_wait_one().

BlockedWaitMany

The thread is stopped in zx_object_wait_many().

BlockedInterrupt

The thread is stopped in zx_interrupt_wait().

BlockedPager

Pager.

Trait Implementations

impl Clone for ThreadState[src]

impl Copy for ThreadState[src]

impl Debug for ThreadState[src]

impl Default for ThreadState[src]

impl Eq for ThreadState[src]

impl PartialEq<ThreadState> for ThreadState[src]

impl StructuralEq for ThreadState[src]

impl StructuralPartialEq for ThreadState[src]

Auto Trait Implementations

impl RefUnwindSafe for ThreadState

impl Send for ThreadState

impl Sync for ThreadState

impl Unpin for ThreadState

impl UnwindSafe for ThreadState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.