[−][src]Struct podo_core_driver::StateFlag
Methods
impl<S> StateFlag<S> where
S: From<usize> + Into<usize>,
[src]
S: From<usize> + Into<usize>,
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]
S: From<usize> + Into<usize>,
impl<S: Default> Default for StateFlag<S> where
S: From<usize> + Into<usize>,
[src]
S: From<usize> + Into<usize>,
Auto Trait Implementations
impl<S> RefUnwindSafe for StateFlag<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for StateFlag<S> where
S: Send,
S: Send,
impl<S> Sync for StateFlag<S> where
S: Sync,
S: Sync,
impl<S> Unpin for StateFlag<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for StateFlag<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,