Enum safe_network::messaging::data::QueryResponse [−][src]
pub enum QueryResponse { GetChunk(Result<Chunk>), GetRegister(Result<Register>), GetRegisterOwner(Result<PublicKey>), ReadRegister(Result<BTreeSet<(EntryHash, Entry)>>), GetRegisterPolicy(Result<Policy>), GetRegisterUserPermissions(Result<Permissions>), }
Expand description
The response to a query, containing the query result.
Variants
Response to ChunkRead::Get
.
Response to RegisterRead::Get
.
Response to RegisterRead::GetOwner
.
Response to RegisterRead::Read
.
Response to RegisterRead::GetPolicy
.
GetRegisterUserPermissions(Result<Permissions>)
Response to RegisterRead::GetUserPermissions
.
Implementations
Returns true if the result returned is a success or not
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.
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