pub struct TaskRef<T: TaskQueue> { /* private fields */ }
Expand description
A pointer to the pinned receiver of an enqueued BatchedTask
Implementations§
Trait Implementations§
Source§impl<T, Parent> BelongsTo<Parent> for TaskRef<T>
Available on crate feature diesel-associations
only.
impl<T, Parent> BelongsTo<Parent> for TaskRef<T>
Available on crate feature
diesel-associations
only.Source§type ForeignKey = <<T as TaskQueue>::Task as BelongsTo<Parent>>::ForeignKey
type ForeignKey = <<T as TaskQueue>::Task as BelongsTo<Parent>>::ForeignKey
The foreign key of this struct
Source§type ForeignKeyColumn = <<T as TaskQueue>::Task as BelongsTo<Parent>>::ForeignKeyColumn
type ForeignKeyColumn = <<T as TaskQueue>::Task as BelongsTo<Parent>>::ForeignKeyColumn
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<T> PartialOrd for TaskRef<T>
impl<T> PartialOrd for TaskRef<T>
Source§impl<T> ToRedisArgs for TaskRef<T>
Available on crate feature redis-args
only.
impl<T> ToRedisArgs for TaskRef<T>
Available on crate feature
redis-args
only.Source§fn write_redis_args<W>(&self, out: &mut W)where
W: ?Sized + RedisWrite,
fn write_redis_args<W>(&self, out: &mut W)where
W: ?Sized + RedisWrite,
This writes the value into a vector of bytes. Each item
is a single argument. Most items generate a single item. Read more
Source§fn to_redis_args(&self) -> Vec<Vec<u8>>
fn to_redis_args(&self) -> Vec<Vec<u8>>
This converts the value into a vector of bytes. Each item
is a single argument. Most items generate a vector of a
single item. Read more
Source§fn describe_numeric_behavior(&self) -> NumericBehavior
fn describe_numeric_behavior(&self) -> NumericBehavior
Returns an information about the contained value with regards
to it’s numeric behavior in a redis context. This is used in
some high level concepts to switch between different implementations
of redis functions (for instance
INCR
vs INCRBYFLOAT
).Source§fn num_of_args(&self) -> usize
fn num_of_args(&self) -> usize
Returns the number of arguments this value will generate. Read more
impl<T> Send for TaskRef<T>where
T: TaskQueue,
impl<T> Sync for TaskRef<T>where
T: TaskQueue,
Auto Trait Implementations§
impl<T> !Freeze for TaskRef<T>
impl<T> !RefUnwindSafe for TaskRef<T>
impl<T> Unpin for TaskRef<T>
impl<T> !UnwindSafe for TaskRef<T>
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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more