pub enum XiCore {
Waiting,
Running(Arc<Mutex<CoreState>>),
}
Expand description
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§
Implementations§
Trait Implementations§
Source§impl Handler for XiCore
Handler for messages originating with the frontend.
impl Handler for XiCore
Handler for messages originating with the frontend.
type Notification = CoreNotification
type Request = CoreRequest
fn handle_notification(&mut self, ctx: &RpcCtx, rpc: Self::Notification)
fn handle_request( &mut self, _ctx: &RpcCtx, rpc: Self::Request, ) -> Result<Value, RemoteError>
fn idle(&mut self, _ctx: &RpcCtx, token: usize)
Auto Trait Implementations§
impl Freeze for XiCore
impl RefUnwindSafe for XiCore
impl Send for XiCore
impl Sync for XiCore
impl Unpin for XiCore
impl UnwindSafe for XiCore
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