Enum sn_messaging::client::ProcessMsg [−][src]
pub enum ProcessMsg { Cmd { id: MessageId, cmd: Cmd, client_signed: ClientSigned, }, Query { id: MessageId, query: Query, client_signed: ClientSigned, }, 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
Fields of Cmd
id: MessageId
Message ID.
cmd: Cmd
Cmd.
client_signed: ClientSigned
Public key and corresponding signature over the command
Queries is a read-only operation.
Show fields
Fields of Query
id: MessageId
Message ID.
query: Query
Query.
client_signed: ClientSigned
Public key and corresponding signature over the query
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
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
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V