Enum safe_network::messaging::client::ProcessMsg [−][src]
pub enum ProcessMsg { Cmd { id: MessageId, cmd: Cmd, client_sig: ClientSig, }, Query { id: MessageId, query: Query, client_sig: ClientSig, }, Event { id: MessageId, event: Event, correlation_id: MessageId, }, QueryResponse { id: MessageId, response: QueryResponse, correlation_id: MessageId, }, CmdError { id: MessageId, error: CmdError, correlation_id: MessageId, }, }
Expand description
Variants
A Cmd is leads to a write / change of state. We expect them to be successful, and only return a msg if something went wrong.
Show fields
Queries is a read-only operation.
Show fields
An Event is a fact about something that happened.
Show fields
The response to a query, containing the query result.
Show fields
Fields of QueryResponse
id: MessageId
Message ID.
response: QueryResponse
QueryResponse.
correlation_id: MessageId
ID of causing query.
Cmd error.
Show fields
Implementations
Create a ProcessingError
to indicate that this message could not be processed.
Context for the error can optionally be supplied in reason
.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ProcessMsg
impl Send for ProcessMsg
impl Sync for ProcessMsg
impl Unpin for ProcessMsg
impl UnwindSafe for ProcessMsg
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V