#[non_exhaustive]pub struct LocalOptions { /* 私有字段 */ }展开描述
仅 LocalRuntime 的配置选项
目前,还没有此类选项,但将来可能会添加诸如 !Send + !Sync 钩子之类的东西。
使用 LocalOptions::default() 创建默认选项集。此类型与 Builder::build_local 一起使用。
trait 实现§
源代码§impl Debug for LocalOptions
impl Debug for LocalOptions
源代码§impl 默认值 for LocalOptions
impl 默认值 for LocalOptions
源代码§fn default() -> LocalOptions
fn default() -> LocalOptions
Returns the “default value” for a type. 更多信息
自动 trait 实现§
impl Freeze for LocalOptions
impl RefUnwindSafe for LocalOptions
impl !Send for LocalOptions
impl !Sync for LocalOptions
impl Unpin for LocalOptions
impl UnsafeUnpin for LocalOptions
impl UnwindSafe for LocalOptions
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息