pub enum Drain {
OsThread {
interval_ms: u64,
},
TokioTask {
interval_ms: u64,
},
IoCallback,
}Expand description
How the actor’s drain loop is spawned.
Variants§
OsThread
OS thread with periodic drain (handler: !Send).
TokioTask
Tokio task with periodic drain (handler: Send).
IoCallback
I/O callback drain — handler drained inline in the backend callback. Factory spawns the I/O thread, construction closures run inside it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Drain
impl RefUnwindSafe for Drain
impl Send for Drain
impl Sync for Drain
impl Unpin for Drain
impl UnsafeUnpin for Drain
impl UnwindSafe for Drain
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