[][src]Enum xi_core_lib::core::XiCore

pub enum XiCore {
    Waiting,
    Running(Arc<Mutex<CoreState>>),
}

A reference to the main core state.

Note

Various items of initial setup are dependent on how the client is configured, so we defer instantiating state until we have that information.

Variants

WaitingRunning(Arc<Mutex<CoreState>>)

Methods

impl XiCore[src]

pub fn new() -> Self[src]

pub fn inner(&self) -> MutexGuard<CoreState>[src]

Returns a guard to the core state. A convenience around Mutex::lock.

Panics

Panics if core has not yet received the client_started message.

Trait Implementations

impl Handler for XiCore[src]

Handler for messages originating with the frontend.

type Notification = CoreNotification

type Request = CoreRequest

Auto Trait Implementations

impl Send for XiCore

impl Unpin for XiCore

impl Sync for XiCore

impl UnwindSafe for XiCore

impl RefUnwindSafe for XiCore

Blanket Implementations

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

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

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.

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

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

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