Struct sn_messaging::node::NodeMessage [−][src]
Node message sent over the network.
Implementations
impl NodeMessage
[src]
impl NodeMessage
[src]pub fn new(bytes: Bytes) -> Self
[src]
Creates a new instance which wraps the provided node message bytes.
pub fn from(bytes: Bytes) -> Result<Self>
[src]
Convenience function to deserialize a ‘NodeMessage’ from bytes received over the wire. It returns an error if the bytes don’t correspond to a node message.
pub fn serialize(&self) -> Result<Bytes>
[src]
serialize this NodeMessage into bytes ready to be sent over the wire.
Trait Implementations
impl Clone for NodeMessage
[src]
impl Clone for NodeMessage
[src]fn clone(&self) -> NodeMessage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for NodeMessage
[src]
impl<'de> Deserialize<'de> for NodeMessage
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for NodeMessage
[src]
impl Eq for NodeMessage
[src]impl PartialEq<NodeMessage> for NodeMessage
[src]
impl PartialEq<NodeMessage> for NodeMessage
[src]impl Serialize for NodeMessage
[src]
impl Serialize for NodeMessage
[src]impl StructuralEq for NodeMessage
[src]
impl StructuralEq for NodeMessage
[src]Auto Trait Implementations
impl RefUnwindSafe for NodeMessage
impl RefUnwindSafe for NodeMessage
impl Send for NodeMessage
impl Send for NodeMessage
impl Sync for NodeMessage
impl Sync for NodeMessage
impl Unpin for NodeMessage
impl Unpin for NodeMessage
impl UnwindSafe for NodeMessage
impl UnwindSafe for NodeMessage
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,