Enum sn_messaging::client::ClientMsg [−][src]
pub enum ClientMsg { Process(ProcessMsg), ProcessingError(ProcessingError), SupportingInfo(SupportingInfo), }
Variants
Process(ProcessMsg)
ProcessingError(ProcessingError)
SupportingInfo(SupportingInfo)
Implementations
impl ClientMsg
[src]
impl ClientMsg
[src]Message envelope containing a Safe message payload, This struct also provides utilities to obtain the serialized bytes ready to send them over the wire.
pub fn from(bytes: Bytes) -> Result<Self>
[src]
pub fn from(bytes: Bytes) -> Result<Self>
[src]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.
pub fn serialize(
&self,
dest: XorName,
dest_section_pk: BlsPublicKey
) -> Result<Bytes>
[src]
pub fn serialize(
&self,
dest: XorName,
dest_section_pk: BlsPublicKey
) -> Result<Bytes>
[src]Serialize this Message into bytes ready to be sent over the wire.
pub fn get_process(&self) -> Option<&ProcessMsg>
[src]
pub fn get_process(&self) -> Option<&ProcessMsg>
[src]return ProcessMessage if any
pub fn get_processing_error(&self) -> Option<&ProcessingError>
[src]
pub fn get_processing_error(&self) -> Option<&ProcessingError>
[src]return ProcessMessage if any
Trait Implementations
impl<'de> Deserialize<'de> for ClientMsg
[src]
impl<'de> Deserialize<'de> for ClientMsg
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClientMsg
[src]
impl StructuralEq for ClientMsg
[src]
impl StructuralPartialEq for ClientMsg
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClientMsg
impl Send for ClientMsg
impl Sync for ClientMsg
impl Unpin for ClientMsg
impl UnwindSafe for ClientMsg
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,