Enum safe_network::messaging::data::QueryResponse
source · [−]pub enum QueryResponse {
GetChunk(Result<Chunk>),
GetRegister((Result<Register>, OperationId)),
GetRegisterEntry((Result<Entry>, OperationId)),
GetRegisterOwner((Result<User>, OperationId)),
ReadRegister((Result<BTreeSet<(EntryHash, Entry)>>, OperationId)),
GetRegisterPolicy((Result<Policy>, OperationId)),
GetRegisterUserPermissions((Result<Permissions>, OperationId)),
FailedToCreateOperationId,
}
Expand description
The response to a query, containing the query result. Response operation id should match query operation_id
Variants
GetChunk(Result<Chunk>)
Response to [ChunkRead::Get
].
GetRegister((Result<Register>, OperationId))
Response to RegisterQuery::Get
.
GetRegisterEntry((Result<Entry>, OperationId))
Response to RegisterQuery::GetEntry
.
GetRegisterOwner((Result<User>, OperationId))
Response to RegisterQuery::GetOwner
.
ReadRegister((Result<BTreeSet<(EntryHash, Entry)>>, OperationId))
Response to RegisterQuery::Read
.
GetRegisterPolicy((Result<Policy>, OperationId))
Response to RegisterQuery::GetPolicy
.
GetRegisterUserPermissions((Result<Permissions>, OperationId))
Response to RegisterQuery::GetUserPermissions
.
FailedToCreateOperationId
Failed to create id generation
Implementations
Returns true if the result returned is a success or not
Returns true if data was not found
Retrieves the operation identifier for this response, use in tracking node liveness and responses at clients.
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 !=
.
type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for QueryResponse
impl Send for QueryResponse
impl Sync for QueryResponse
impl Unpin for QueryResponse
impl UnwindSafe for QueryResponse
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