pub struct Memory { /* private fields */ }Expand description
The memory backend’s state.
Implementations§
Trait Implementations§
Source§impl NativeBackend for Memory
impl NativeBackend for Memory
Source§fn init(&mut self, _init: &Value, out: &Outbox)
fn init(&mut self, _init: &Value, out: &Outbox)
The
init message: first after every (re)start (restart counts earlier starts).Source§fn event(&mut self, ev: &Value, out: &Outbox)
fn event(&mut self, ev: &Value, out: &Outbox)
An
event (event: client, view, web, or a subscribed engine event).Source§fn request(
&mut self,
method: &str,
params: &Value,
_out: &Outbox,
) -> Result<Value, String>
fn request( &mut self, method: &str, params: &Value, _out: &Outbox, ) -> Result<Value, String>
A
request (method: tool, view, hook, web): its reply’s result, or the
error text. Messages sent through out meanwhile reach byob before the reply.Source§fn after_request(&mut self, method: &str, out: &Outbox)
fn after_request(&mut self, method: &str, out: &Outbox)
After the reply to a request went out (e.g. draw views again after a tool call).
Auto Trait Implementations§
impl Forget for Memory
impl Freeze for Memory
impl Move for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnsafeUnpin for Memory
impl UnwindSafe for Memory
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