pub struct RuntimeStateAndConfig<'config> {
pub state: RuntimeState,
pub config: &'config RuntimeConfig,
}
Expand description
Runtime state and config.
Fields§
§state: RuntimeState
Runtime state.
config: &'config RuntimeConfig
RuntimeConfig,
Implementations§
Source§impl RuntimeStateAndConfig<'static>
impl RuntimeStateAndConfig<'static>
Sourcepub fn with_default_config(state: RuntimeState) -> Self
pub fn with_default_config(state: RuntimeState) -> Self
Used for testing.
Trait Implementations§
Source§impl<'config> AsMut<RuntimeState> for RuntimeStateAndConfig<'config>
impl<'config> AsMut<RuntimeState> for RuntimeStateAndConfig<'config>
Source§fn as_mut(&mut self) -> &mut RuntimeState
fn as_mut(&mut self) -> &mut RuntimeState
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<'config> AsRef<RuntimeConfig> for RuntimeStateAndConfig<'config>
impl<'config> AsRef<RuntimeConfig> for RuntimeStateAndConfig<'config>
Source§fn as_ref(&self) -> &RuntimeConfig
fn as_ref(&self) -> &RuntimeConfig
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'config> AsRef<RuntimeState> for RuntimeStateAndConfig<'config>
impl<'config> AsRef<RuntimeState> for RuntimeStateAndConfig<'config>
Source§fn as_ref(&self) -> &RuntimeState
fn as_ref(&self) -> &RuntimeState
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'config> Clone for RuntimeStateAndConfig<'config>
impl<'config> Clone for RuntimeStateAndConfig<'config>
Source§fn clone(&self) -> RuntimeStateAndConfig<'config>
fn clone(&self) -> RuntimeStateAndConfig<'config>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'config> Debug for RuntimeStateAndConfig<'config>
impl<'config> Debug for RuntimeStateAndConfig<'config>
Auto Trait Implementations§
impl<'config> Freeze for RuntimeStateAndConfig<'config>
impl<'config> RefUnwindSafe for RuntimeStateAndConfig<'config>
impl<'config> !Send for RuntimeStateAndConfig<'config>
impl<'config> !Sync for RuntimeStateAndConfig<'config>
impl<'config> Unpin for RuntimeStateAndConfig<'config>
impl<'config> UnwindSafe for RuntimeStateAndConfig<'config>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> TrapConsume<T> for T
impl<T> TrapConsume<T> for T
Source§type Rest = Infallible
type Rest = Infallible
Rest type.
Source§fn consume(self) -> Result<T, Infallible>
fn consume(self) -> Result<T, Infallible>
Consume
T
to get Rest
.