Enum safe_network::messaging::system::NodeQueryResponse
source · [−]pub enum NodeQueryResponse {
GetChunk(Result<Chunk>),
GetRegister((Result<Register>, OperationId)),
GetRegisterOwner((Result<User>, OperationId)),
GetRegisterEntry((Result<Entry>, OperationId)),
GetRegisterPolicy((Result<Policy>, OperationId)),
ReadRegister((Result<BTreeSet<(EntryHash, Entry)>>, OperationId)),
GetRegisterUserPermissions((Result<Permissions>, OperationId)),
FailedToCreateOperationId,
}
Expand description
Responses to queries from Elders to Adults.
Variants
GetChunk(Result<Chunk>)
Response to [ChunkRead::Get
].
GetRegister((Result<Register>, OperationId))
Response to [RegisterQuery::Get
].
GetRegisterOwner((Result<User>, OperationId))
Response to [RegisterQuery::GetOwner
].
GetRegisterEntry((Result<Entry>, OperationId))
Response to [RegisterQuery::GetEntry
].
GetRegisterPolicy((Result<Policy>, OperationId))
Response to [RegisterQuery::GetPolicy
].
ReadRegister((Result<BTreeSet<(EntryHash, Entry)>>, OperationId))
Response to [RegisterQuery::Read
].
GetRegisterUserPermissions((Result<Permissions>, OperationId))
Response to [RegisterQuery::GetUserPermissions
].
FailedToCreateOperationId
Failed to create id generation
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 NodeQueryResponse
impl Send for NodeQueryResponse
impl Sync for NodeQueryResponse
impl Unpin for NodeQueryResponse
impl UnwindSafe for NodeQueryResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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