pub enum ExecutionLocus {
ClientLocal,
ServerPreferred,
}Expand description
Where an action executes, declared on the action type and carried on every
envelope. ServerPreferred retains its historical
wire spelling, but is an authoritative-host requirement: absence of a host
is a refusal, never permission for the client to perform the operation.
Variants§
ClientLocal
This client applies the action locally and replicates the envelope; peers replay it (verifying it was a valid mutation). The default.
ServerPreferred
Requires authoritative execution on a host (e.g. a shared queue or moderated reply). The dispatcher submits to the host and fails closed when none is reachable.
Trait Implementations§
Source§impl Clone for ExecutionLocus
impl Clone for ExecutionLocus
impl Copy for ExecutionLocus
Source§impl Debug for ExecutionLocus
impl Debug for ExecutionLocus
Source§impl Default for ExecutionLocus
impl Default for ExecutionLocus
Source§impl<'de> Deserialize<'de> for ExecutionLocus
impl<'de> Deserialize<'de> for ExecutionLocus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExecutionLocus
Source§impl Hash for ExecutionLocus
impl Hash for ExecutionLocus
Source§impl PartialEq for ExecutionLocus
impl PartialEq for ExecutionLocus
Source§impl Serialize for ExecutionLocus
impl Serialize for ExecutionLocus
impl StructuralPartialEq for ExecutionLocus
Auto Trait Implementations§
impl Forget for ExecutionLocus
impl Freeze for ExecutionLocus
impl Move for ExecutionLocus
impl RefUnwindSafe for ExecutionLocus
impl Send for ExecutionLocus
impl Sync for ExecutionLocus
impl Unpin for ExecutionLocus
impl UnsafeUnpin for ExecutionLocus
impl UnwindSafe for ExecutionLocus
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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