Struct barley_std::thread::Sleep
source · pub struct Sleep { /* private fields */ }Implementations§
Trait Implementations§
source§impl Action for Sleep
impl Action for Sleep
source§fn check<'life0, 'async_trait>(
&'life0 self,
_ctx: Arc<RwLock<Context>>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check<'life0, 'async_trait>( &'life0 self, _ctx: Arc<RwLock<Context>> ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Check if the action needs to be run. Read more
source§fn perform<'life0, 'async_trait>(
&'life0 self,
_ctx: Arc<RwLock<Context>>
) -> Pin<Box<dyn Future<Output = Result<Option<ActionOutput>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn perform<'life0, 'async_trait>( &'life0 self, _ctx: Arc<RwLock<Context>> ) -> Pin<Box<dyn Future<Output = Result<Option<ActionOutput>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Run the action.
source§fn rollback<'life0, 'async_trait>(
&'life0 self,
_ctx: Arc<RwLock<Context>>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rollback<'life0, 'async_trait>( &'life0 self, _ctx: Arc<RwLock<Context>> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Undo the action. Read more
source§fn display_name(&self) -> String
fn display_name(&self) -> String
Get the display name of the action.
Auto Trait Implementations§
impl RefUnwindSafe for Sleep
impl Send for Sleep
impl Sync for Sleep
impl Unpin for Sleep
impl UnwindSafe for Sleep
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more