pub struct LocalClient { /* private fields */ }Expand description
In-process client handle. Sends ops directly into the server under the shared state lock; receives events over a std mpsc channel.
Implementations§
Trait Implementations§
Source§impl Client for LocalClient
impl Client for LocalClient
Source§fn submit_op(&mut self, op: CanvasOp) -> ClientOpId
fn submit_op(&mut self, op: CanvasOp) -> ClientOpId
Submit an op to the server. Returns the client_op_id the op was tagged
with (monotonic per client), which will be echoed back in the matching
Ack or Reject.
Auto Trait Implementations§
impl Freeze for LocalClient
impl RefUnwindSafe for LocalClient
impl Send for LocalClient
impl !Sync for LocalClient
impl Unpin for LocalClient
impl UnsafeUnpin for LocalClient
impl UnwindSafe for LocalClient
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