Struct abscissa_core::config::CfgCell[][src]

pub struct CfgCell<C: Config> { /* fields omitted */ }

Configuration cell: holder of application configuration.

Implementations

impl<C> CfgCell<C> where
    C: Config
[src]

pub fn set_once(&self, config: C)[src]

Set the application configuration to the given value.

This can only be performed once without causing a crash.

pub fn read(&self) -> Reader<C>[src]

Read the current configuration.

Trait Implementations

impl<C: Debug + Config> Debug for CfgCell<C>[src]

impl<C: Default + Config> Default for CfgCell<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for CfgCell<C> where
    C: RefUnwindSafe
[src]

impl<C> Send for CfgCell<C> where
    C: Send + Sync
[src]

impl<C> Sync for CfgCell<C> where
    C: Send + Sync
[src]

impl<C> Unpin for CfgCell<C>[src]

impl<C> UnwindSafe for CfgCell<C> where
    C: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D> OwoColorize for D

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.