[−][src]Enum xi_core_lib::core::XiCore
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
Waiting
Running(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
fn handle_notification(&mut self, ctx: &RpcCtx, rpc: Self::Notification)
[src]
fn handle_request(
&mut self,
_ctx: &RpcCtx,
rpc: Self::Request
) -> Result<Value, RemoteError>
[src]
&mut self,
_ctx: &RpcCtx,
rpc: Self::Request
) -> Result<Value, RemoteError>
fn idle(&mut self, _ctx: &RpcCtx, token: usize)
[src]
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,