[−][src]Struct xi_core_lib::core::WeakXiCore
A weak reference to the main state. This is passed to plugin threads.
Methods
impl WeakXiCore
[src]
pub fn plugin_connect(&self, plugin: Result<Plugin, Error>)
[src]
Called immediately after attempting to start a plugin, from the plugin's thread.
pub fn plugin_exit(&self, plugin: PluginId, error: Result<(), ReadError>)
[src]
Called from a plugin runloop thread when the runloop exits.
pub fn handle_plugin_update(
&self,
plugin: PluginId,
view: ViewId,
response: Result<Value, RpcError>
)
[src]
&self,
plugin: PluginId,
view: ViewId,
response: Result<Value, RpcError>
)
Handles the result of an update sent to a plugin.
All plugins must acknowledge when they are sent a new update, so that core can track which revisions are still 'live', that is can still be the base revision for a delta. Once a plugin has acknowledged a new revision, it can no longer send deltas against any older revision.
Trait Implementations
impl Clone for WeakXiCore
[src]
fn clone(&self) -> WeakXiCore
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Handler for WeakXiCore
[src]
Handler for messages originating from plugins.
type Notification = PluginCommand<PluginNotification>
type Request = PluginCommand<PluginRequest>
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 WeakXiCore
impl Unpin for WeakXiCore
impl Sync for WeakXiCore
impl UnwindSafe for WeakXiCore
impl RefUnwindSafe for WeakXiCore
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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,