Enum TimerTake
pub enum TimerTake<T> {
Ready(T),
Empty,
WouldBlock,
Busy,
Closed,
}Expand description
一次到期取出的正常分类;异常使用外层错误。
Variants§
Ready(T)
已交出原值及责任;用于到期批次(DueBatch)时必须非空。 单项原值(Item)不受此限制,即使其自身是空向量(Vec)等容器也可以交付。
Empty
本次无可交付内容,不证明时间追赶完成或允许关闭。
WouldBlock
发布/必要准备未完成;全部到期取出尚不能证明完整时也使用此分类。
Busy
本次访问权被占用,不无限自旋(spin)。
Closed
此取出出口已结束,整体来源仍可能在关闭处理中。
Auto Trait Implementations§
impl<T> Forget for TimerTake<T>
impl<T> Freeze for TimerTake<T>where
T: Freeze,
impl<T> Move for TimerTake<T>
impl<T> RefUnwindSafe for TimerTake<T>where
T: RefUnwindSafe,
impl<T> Send for TimerTake<T>where
T: Send,
impl<T> Sync for TimerTake<T>where
T: Sync,
impl<T> Unpin for TimerTake<T>where
T: Unpin,
impl<T> UnsafeUnpin for TimerTake<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TimerTake<T>where
T: UnwindSafe,
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