pub enum Dispatched {
AppliedLocal(ActionEnvelope),
SubmittedToHost(ActionEnvelope),
}Expand description
What dispatch did with an action.
Variants§
AppliedLocal(ActionEnvelope)
ClientLocal: applied to the local replica and replicated.
SubmittedToHost(ActionEnvelope)
ServerPreferred accepted by a host: NOT applied locally — the host
executes and broadcasts the change.
Implementations§
Source§impl Dispatched
impl Dispatched
Sourcepub fn envelope(&self) -> &ActionEnvelope
pub fn envelope(&self) -> &ActionEnvelope
The envelope produced, regardless of variant.
Sourcepub fn mutated_local(&self) -> bool
pub fn mutated_local(&self) -> bool
Whether the local doc was mutated by this dispatch (false only when
a host accepted the action).
Trait Implementations§
Source§impl Clone for Dispatched
impl Clone for Dispatched
Source§impl Debug for Dispatched
impl Debug for Dispatched
impl Eq for Dispatched
Source§impl PartialEq for Dispatched
impl PartialEq for Dispatched
impl StructuralPartialEq for Dispatched
Auto Trait Implementations§
impl Forget for Dispatched
impl Freeze for Dispatched
impl Move for Dispatched
impl RefUnwindSafe for Dispatched
impl Send for Dispatched
impl Sync for Dispatched
impl Unpin for Dispatched
impl UnsafeUnpin for Dispatched
impl UnwindSafe for Dispatched
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more