[][src]Trait edit_client::client::ClientController

pub trait ClientController {
    fn state(&mut self) -> RefMut<Client>;
fn send_frontend(&self, req: &FrontendCommand) -> Result<(), Error>;
fn send_server(&self, req: &ServerCommand) -> Result<(), Error>; fn setup_controls(&mut self, caret_state: Option<CaretState>)
    where
        Self: Sized
, { ... }
fn handle_task(&mut self, value: Task) -> Result<(), Error>
    where
        Self: Sized
, { ... }
fn upload(&mut self, local_op: Op<RtfSchema>) -> Result<(), Error> { ... }
fn with_action_context<C, T>(&mut self, callback: C) -> Result<T, Error>
    where
        C: Fn(ActionContext) -> Result<T, Error>
, { ... }
fn client_op<C>(&mut self, callback: C) -> Result<(), Error>
    where
        C: Fn(ActionContext) -> Result<Op<RtfSchema>, Error>,
        Self: Sized
, { ... } }

Trait shared by the "wasm" and "client proxy" implementations. Most methods are implemented on this trait, not its implementors.

Required Methods

Provided Methods

Implementors

impl ClientController for ProxyClientController
[src]