Module workflow_core::prelude
source · Expand description
The prelude module re-exports the most commonly used traits and types from the workflow_core crate.
Re-exports
pub use crate::abortable::Abortable;
pub use crate::channel::oneshot;
pub use crate::channel::Channel;
pub use crate::channel::DuplexChannel;
pub use crate::channel::Multiplexer;
pub use crate::sendable::Sendable;
pub use crate::task::dispatch;
pub use crate::task::interval;
pub use crate::task::spawn;
pub use crate::time::unixtime_as_millis_f64;
pub use crate::time::unixtime_as_millis_u128;
pub use crate::extensions::*;
Structs
- A
Duration
type to represent a span of time, typically used for system timeouts.
Functions
- Waits until
duration
has elapsed. - Yields execution back to the Tokio runtime.
- Yields execution back to the Tokio runtime.
Type Definitions
Derive Macros
- Attribute macro for automatic conversion of enums to their string representation