pub struct Response<'innards> { /* private fields */ }Expand description
A response event
Implementations§
Source§impl<'innards> Response<'innards>
impl<'innards> Response<'innards>
Sourcepub const fn new(
query_handle: QueryHandle,
question: Question<'innards>,
) -> Self
pub const fn new( query_handle: QueryHandle, question: Question<'innards>, ) -> Self
Creates a new response event.
Sourcepub const fn query_handle(&self) -> QueryHandle
pub const fn query_handle(&self) -> QueryHandle
Returns the query handle associated with the response event.
Trait Implementations§
impl<'innards> Eq for Response<'innards>
impl<'innards> StructuralPartialEq for Response<'innards>
Auto Trait Implementations§
impl<'innards> Freeze for Response<'innards>
impl<'innards> RefUnwindSafe for Response<'innards>
impl<'innards> Send for Response<'innards>
impl<'innards> Sync for Response<'innards>
impl<'innards> Unpin for Response<'innards>
impl<'innards> UnwindSafe for Response<'innards>
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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