pub struct DynRuntimeInitAttrs<T: UserEvent> { /* private fields */ }Expand description
The RuntimeInitAttrs of DynRuntime.
Wraps the attributes of the concrete runtime to use, which is how the runtime is selected.
The default value selects no runtime, in which case initializing the DynRuntime fails
with Error::RuntimeNotConfigured.
Implementations§
Source§impl<T: UserEvent> DynRuntimeInitAttrs<T>
impl<T: UserEvent> DynRuntimeInitAttrs<T>
Sourcepub fn new<A: RuntimeInitAttrs<T>>(attrs: A) -> Self
pub fn new<A: RuntimeInitAttrs<T>>(attrs: A) -> Self
Selects the runtime initialized with the given attributes.
Sourcepub fn is_configured(&self) -> bool
pub fn is_configured(&self) -> bool
Whether a runtime was selected.
Trait Implementations§
Source§impl<T: UserEvent> Debug for DynRuntimeInitAttrs<T>
impl<T: UserEvent> Debug for DynRuntimeInitAttrs<T>
Source§impl<T: UserEvent> Default for DynRuntimeInitAttrs<T>
impl<T: UserEvent> Default for DynRuntimeInitAttrs<T>
Source§impl<T: UserEvent> RuntimeInitAttrs<T> for DynRuntimeInitAttrs<T>
impl<T: UserEvent> RuntimeInitAttrs<T> for DynRuntimeInitAttrs<T>
Source§type Runtime = DynRuntime<T>
type Runtime = DynRuntime<T>
The runtime initialized with these attributes.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for DynRuntimeInitAttrs<T>
impl<T> !UnwindSafe for DynRuntimeInitAttrs<T>
impl<T> Freeze for DynRuntimeInitAttrs<T>
impl<T> Send for DynRuntimeInitAttrs<T>
impl<T> Sync for DynRuntimeInitAttrs<T>
impl<T> Unpin for DynRuntimeInitAttrs<T>
impl<T> UnsafeUnpin for DynRuntimeInitAttrs<T>
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