Struct scyllax::executor::QueryRunnerMessage
source · pub struct QueryRunnerMessage<Q: ReadQuery> {
pub hash: u64,
pub query: Q,
pub response_transmitter: Sender<Arc<Result<<Q as ReadQuery>::Output, ScyllaxError>>>,
}
Expand description
A message sent to the Executor::read_query_runner
task.
Fields§
§hash: u64
§query: Q
§response_transmitter: Sender<Arc<Result<<Q as ReadQuery>::Output, ScyllaxError>>>
Auto Trait Implementations§
impl<Q> Freeze for QueryRunnerMessage<Q>where
Q: Freeze,
impl<Q> !RefUnwindSafe for QueryRunnerMessage<Q>
impl<Q> Send for QueryRunnerMessage<Q>
impl<Q> Sync for QueryRunnerMessage<Q>
impl<Q> Unpin for QueryRunnerMessage<Q>where
Q: Unpin,
impl<Q> !UnwindSafe for QueryRunnerMessage<Q>
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> 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>
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