[−][src]Enum actix_raft::messages::ResponseMode
The desired response mode for a client request.
This value specifies when a client request desires to receive its response from Raft. When
Comitted
is chosen, the client request will receive a response after the request has been
successfully replicated to at least half of the nodes in the cluster. This is what the Raft
protocol refers to as being comitted.
When Applied
is chosen, the client request will receive a response after the request has
been successfully committed and successfully applied to the state machine.
The choice between these two options depends on the requirements related to the request. If
the data of the client request payload will need to be read immediately after the response is
received, then Applied
must be used. If there is no requirement that the data must be
immediately read after receiving a response, then Committed
may be used to speed up
response times.
Variants
A response will be returned after the request has been committed to the cluster.
A response will be returned after the request has been applied to the leader's state machine.
Trait Implementations
impl Debug for ResponseMode
[src]
impl<'de> Deserialize<'de> for ResponseMode
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ResponseMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResponseMode
impl Send for ResponseMode
impl Sync for ResponseMode
impl Unpin for ResponseMode
impl UnwindSafe for ResponseMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,