#[non_exhaustive]pub enum QueryUpdate {
Timeout,
Done,
}Expand description
App-level events emitted by Query::poll().
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Timeout
Query’s retry budget expired without finding a match.
Done
Query is finished (caller cancelled or completed enough answers).
Implementations§
Source§impl QueryUpdate
impl QueryUpdate
Source§impl QueryUpdate
impl QueryUpdate
Sourcepub fn unwrap_timeout(self)
pub fn unwrap_timeout(self)
Unwraps this value to the QueryUpdate::Timeout variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_timeout_ref(&self)
pub fn unwrap_timeout_ref(&self)
Unwraps this reference to the QueryUpdate::Timeout variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_done(self)
pub fn unwrap_done(self)
Unwraps this value to the QueryUpdate::Done variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_done_ref(&self)
pub fn unwrap_done_ref(&self)
Unwraps this reference to the QueryUpdate::Done variant.
Panics if this value is of any other type.
Source§impl QueryUpdate
impl QueryUpdate
Sourcepub fn try_unwrap_timeout(self) -> Result<(), TryUnwrapError<QueryUpdate>>
pub fn try_unwrap_timeout(self) -> Result<(), TryUnwrapError<QueryUpdate>>
Attempts to unwrap this value to the QueryUpdate::Timeout variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_timeout_ref(&self) -> Result<(), TryUnwrapError<&QueryUpdate>>
pub fn try_unwrap_timeout_ref(&self) -> Result<(), TryUnwrapError<&QueryUpdate>>
Attempts to unwrap this reference to the QueryUpdate::Timeout variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_done(self) -> Result<(), TryUnwrapError<QueryUpdate>>
pub fn try_unwrap_done(self) -> Result<(), TryUnwrapError<QueryUpdate>>
Attempts to unwrap this value to the QueryUpdate::Done variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_done_ref(&self) -> Result<(), TryUnwrapError<&QueryUpdate>>
pub fn try_unwrap_done_ref(&self) -> Result<(), TryUnwrapError<&QueryUpdate>>
Attempts to unwrap this reference to the QueryUpdate::Done variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Trait Implementations§
Source§impl Clone for QueryUpdate
impl Clone for QueryUpdate
Source§fn clone(&self) -> QueryUpdate
fn clone(&self) -> QueryUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for QueryUpdate
Auto Trait Implementations§
impl Freeze for QueryUpdate
impl RefUnwindSafe for QueryUpdate
impl Send for QueryUpdate
impl Sync for QueryUpdate
impl Unpin for QueryUpdate
impl UnsafeUnpin for QueryUpdate
impl UnwindSafe for QueryUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more