#[non_exhaustive]pub enum RuntimeFlavor {
CurrentThread,
MultiThread,
}展开描述
Runtime 的类型风格。
这是 Handle::runtime_flavor 的返回类型。
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举将来可能会添加额外的变体。因此,在对非穷尽枚举的变体进行匹配时,必须添加一个额外的通配符分支以涵盖未来的任何变体。
Trait 实现§
Source§impl Debug for RuntimeFlavor
impl Debug for RuntimeFlavor
Source§impl PartialEq for RuntimeFlavor
impl PartialEq for RuntimeFlavor
impl Eq for RuntimeFlavor
impl StructuralPartialEq for RuntimeFlavor
自动 Trait 实现§
impl Freeze for RuntimeFlavor
impl RefUnwindSafe for RuntimeFlavor
impl Send for RuntimeFlavor
impl Sync for RuntimeFlavor
impl Unpin for RuntimeFlavor
impl UnsafeUnpin for RuntimeFlavor
impl UnwindSafe for RuntimeFlavor
Blanket 实现§
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. 更多信息