Struct LocalOptions
#[non_exhaustive]pub struct LocalOptions { /* private fields */ }
Available on crate feature
rt only.LocalRuntime-only config options
Currently, there are no such options, but in the future, things like !Send + !Sync hooks may be added.
Use LocalOptions::default() to create the default set of options. This type is used with Builder::build_local.
Trait Implementations
impl Debug for LocalOptions
impl Default for LocalOptions
fn default() -> LocalOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !Send for LocalOptions
impl !Sync for LocalOptions
impl Freeze for LocalOptions
impl RefUnwindSafe for LocalOptions
impl Unpin for LocalOptions
impl UnsafeUnpin for LocalOptions
impl UnwindSafe for LocalOptions
Blanket Implementations
impl<T> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/runtime/struct.LocalOptions.html