[][src]Struct podo_core_driver::StateFlag

pub struct StateFlag<S> where
    S: From<usize> + Into<usize>, 
{ /* fields omitted */ }

Methods

impl<S> StateFlag<S> where
    S: From<usize> + Into<usize>, 
[src]

pub fn new_ready() -> Self[src]

pub fn new_running(state: S) -> Self[src]

pub fn start_initialize(&self) -> Result<(), RuntimeError>[src]

pub fn stop_initialize(&self) -> Result<(), RuntimeError>[src]

pub fn skip_initialize(&self) -> Result<(), RuntimeError>[src]

pub fn start(&self, state: S) -> Result<(), RuntimeError>[src]

pub fn status(&self) -> Result<S, RuntimeError>[src]

pub fn stop(&self) -> Result<(), RuntimeError>[src]

pub fn is_initialized(&self) -> bool[src]

pub fn is_running(&self) -> bool[src]

pub fn assert_running(&self) -> Result<(), RuntimeError>[src]

pub fn assert_stopped(&self) -> Result<(), RuntimeError>[src]

Trait Implementations

impl<S: Clone> Clone for StateFlag<S> where
    S: From<usize> + Into<usize>, 
[src]

impl<S: Default> Default for StateFlag<S> where
    S: From<usize> + Into<usize>, 
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for StateFlag<S> where
    S: RefUnwindSafe

impl<S> Send for StateFlag<S> where
    S: Send

impl<S> Sync for StateFlag<S> where
    S: Sync

impl<S> Unpin for StateFlag<S> where
    S: Unpin

impl<S> UnwindSafe for StateFlag<S> where
    S: UnwindSafe

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> 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.