pub struct Outbox(/* private fields */);Expand description
Where a native backend’s messages go (byob’s side of the wire).
Implementations§
Source§impl Outbox
impl Outbox
pub fn new(send: impl Fn(Value) + Send + Sync + 'static) -> Self
Sourcepub fn view(&self, id: &str, key: &str, tree: Value)
pub fn view(&self, id: &str, key: &str, tree: Value)
A view’s whole new tree (values and client: fields set for one client).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Outbox
impl !UnwindSafe for Outbox
impl Forget for Outbox
impl Freeze for Outbox
impl Move for Outbox
impl Send for Outbox
impl Sync for Outbox
impl Unpin for Outbox
impl UnsafeUnpin for Outbox
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