pub struct ToQuery<'a> { /* private fields */ }Expand description
A routing decision produced by Endpoint::handle().
Implementations§
Source§impl<'a> ToQuery<'a>
impl<'a> ToQuery<'a>
Sourcepub const fn handle(&self) -> QueryHandle
pub const fn handle(&self) -> QueryHandle
Returns the query handle this event is addressed to.
Sourcepub const fn event(&self) -> &QueryEvent<'a>
pub const fn event(&self) -> &QueryEvent<'a>
Returns a reference to the query event payload.
Sourcepub const fn into_event(self) -> QueryEvent<'a>
pub const fn into_event(self) -> QueryEvent<'a>
Consumes the routing decision and returns the inner event.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ToQuery<'a>
impl<'a> RefUnwindSafe for ToQuery<'a>
impl<'a> Send for ToQuery<'a>
impl<'a> Sync for ToQuery<'a>
impl<'a> Unpin for ToQuery<'a>
impl<'a> UnsafeUnpin for ToQuery<'a>
impl<'a> UnwindSafe for ToQuery<'a>
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