pub struct ClientWriteResponse<C>where
C: RaftTypeConfig,{
pub log_id: LogId<<C as RaftTypeConfig>::NodeId>,
pub data: <C as RaftTypeConfig>::R,
pub membership: Option<Membership<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node>>,
}Expand description
The response to a client-request.
Fields§
§log_id: LogId<<C as RaftTypeConfig>::NodeId>The id of the log that is applied.
data: <C as RaftTypeConfig>::RApplication specific response data.
membership: Option<Membership<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node>>If the log entry is a change-membership entry.
Implementations§
Source§impl<C> ClientWriteResponse<C>where
C: RaftTypeConfig,
impl<C> ClientWriteResponse<C>where
C: RaftTypeConfig,
Sourcepub fn log_id(&self) -> &LogId<<C as RaftTypeConfig>::NodeId>
pub fn log_id(&self) -> &LogId<<C as RaftTypeConfig>::NodeId>
Since: 0.9.5
Sourcepub fn response(&self) -> &<C as RaftTypeConfig>::R
pub fn response(&self) -> &<C as RaftTypeConfig>::R
Since: 0.9.5
Sourcepub fn membership(
&self,
) -> &Option<Membership<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node>>
pub fn membership( &self, ) -> &Option<Membership<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node>>
Return membership config if the log entry is a change-membership entry.
Since: 0.9.5
Trait Implementations§
Source§impl<C> Debug for ClientWriteResponse<C>
impl<C> Debug for ClientWriteResponse<C>
Source§impl<'de, C> Deserialize<'de> for ClientWriteResponse<C>
impl<'de, C> Deserialize<'de> for ClientWriteResponse<C>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientWriteResponse<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientWriteResponse<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C> MessageSummary<ClientWriteResponse<C>> for ClientWriteResponse<C>where
C: RaftTypeConfig,
impl<C> MessageSummary<ClientWriteResponse<C>> for ClientWriteResponse<C>where
C: RaftTypeConfig,
Source§impl<C> Serialize for ClientWriteResponse<C>
impl<C> Serialize for ClientWriteResponse<C>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<C> Freeze for ClientWriteResponse<C>
impl<C> RefUnwindSafe for ClientWriteResponse<C>where
<C as RaftTypeConfig>::R: RefUnwindSafe,
<C as RaftTypeConfig>::NodeId: RefUnwindSafe,
<C as RaftTypeConfig>::Node: RefUnwindSafe,
impl<C> Send for ClientWriteResponse<C>
impl<C> Sync for ClientWriteResponse<C>
impl<C> Unpin for ClientWriteResponse<C>
impl<C> UnsafeUnpin for ClientWriteResponse<C>
impl<C> UnwindSafe for ClientWriteResponse<C>where
<C as RaftTypeConfig>::R: UnwindSafe,
<C as RaftTypeConfig>::NodeId: UnwindSafe + RefUnwindSafe,
<C as RaftTypeConfig>::Node: RefUnwindSafe,
Blanket Implementations§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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
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> 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