Enum safe_network::messaging::node::NodeCmd [−][src]
pub enum NodeCmd { Metadata { cmd: NodeDataCmd, data_signed: DataSigned, origin: EndUser, }, Chunks { cmd: ChunkWrite, data_signed: DataSigned, origin: EndUser, }, System(NodeSystemCmd), }
Expand description
Variants
Metadata is handled by Elders
Fields of Metadata
cmd: NodeDataCmd
The contianed command
data_signed: DataSigned
Requester pk and signature
origin: EndUser
Message source
Chunks are handled by Adults
Fields of Chunks
cmd: ChunkWrite
The contianed command
data_signed: DataSigned
Requester pk and signature
origin: EndUser
Message source
System(NodeSystemCmd)
Cmds related to the running of a node.
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 NodeCmd
impl UnwindSafe for NodeCmd
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
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
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more