Struct openraft::raft::ClientWriteResponse
source · pub struct ClientWriteResponse<C: RaftTypeConfig> {
pub log_id: LogId<C::NodeId>,
pub data: C::R,
pub membership: Option<Membership<C::NodeId, C::Node>>,
}
Expand description
The response to a client-request.
Fields§
§log_id: LogId<C::NodeId>
The id of the log that is applied.
data: C::R
Application specific response data.
membership: Option<Membership<C::NodeId, C::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,
Trait Implementations§
source§impl<C: RaftTypeConfig> Debug for ClientWriteResponse<C>
impl<C: RaftTypeConfig> Debug for ClientWriteResponse<C>
source§impl<'de, C: RaftTypeConfig> Deserialize<'de> for ClientWriteResponse<C>where
C::R: AppDataResponse,
impl<'de, C: RaftTypeConfig> Deserialize<'de> for ClientWriteResponse<C>where
C::R: AppDataResponse,
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
source§impl<C: RaftTypeConfig> MessageSummary<ClientWriteResponse<C>> for ClientWriteResponse<C>
impl<C: RaftTypeConfig> MessageSummary<ClientWriteResponse<C>> for ClientWriteResponse<C>
source§impl<C: RaftTypeConfig> Serialize for ClientWriteResponse<C>where
C::R: AppDataResponse,
impl<C: RaftTypeConfig> Serialize for ClientWriteResponse<C>where
C::R: AppDataResponse,
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> UnwindSafe for ClientWriteResponse<C>where
<C as RaftTypeConfig>::R: UnwindSafe,
<C as RaftTypeConfig>::NodeId: UnwindSafe + RefUnwindSafe,
<C as RaftTypeConfig>::Node: RefUnwindSafe,
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