Enum safe_network::messaging::client::ClientMsg [−][src]
pub enum ClientMsg { Process(ProcessMsg), ProcessingError(ProcessingError), SupportingInfo(SupportingInfo), }
Expand description
Message envelope containing a Safe message payload, This struct also provides utilities to obtain the serialized bytes ready to send them over the wire.
Variants
Process(ProcessMsg)
Process message.
ProcessingError(ProcessingError)
Processing error.
SupportingInfo(SupportingInfo)
Supporting information.
Implementations
Convenience function to deserialize a ‘Message’ from bytes received over the wire. It returns an error if the bytes don’t correspond to a client message.
Serialize this Message into bytes ready to be sent over the wire.
return ProcessMessage if any
return ProcessMessage if any
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
Auto Trait Implementations
impl RefUnwindSafe for ClientMsg
impl UnwindSafe for ClientMsg
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