Struct stack_queue::task::TaskRef
source · pub struct TaskRef<T: TaskQueue> { /* private fields */ }Expand description
A pointer to the pinned receiver of an enqueued AutoBatchedTask
Implementations§
Trait Implementations§
source§impl<T, Parent> BelongsTo<Parent> for TaskRef<T>where
T: TaskQueue,
T::Task: BelongsTo<Parent>,
Available on crate feature diesel-associations only.
impl<T, Parent> BelongsTo<Parent> for TaskRef<T>where T: TaskQueue, T::Task: BelongsTo<Parent>,
Available on crate feature
diesel-associations only.§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
§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
selfsource§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> PartialEq<TaskRef<T>> for TaskRef<T>where
T: TaskQueue,
T::Task: PartialEq,
impl<T> PartialEq<TaskRef<T>> for TaskRef<T>where T: TaskQueue, T::Task: PartialEq,
source§impl<T> PartialOrd<TaskRef<T>> for TaskRef<T>where
T: TaskQueue,
T::Task: PartialOrd,
impl<T> PartialOrd<TaskRef<T>> for TaskRef<T>where T: TaskQueue, T::Task: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<T> ToRedisArgs for TaskRef<T>where
T: TaskQueue,
T::Task: ToRedisArgs,
Available on crate feature redis-args only.
impl<T> ToRedisArgs for TaskRef<T>where T: TaskQueue, T::Task: ToRedisArgs,
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, Global>, Global>
fn to_redis_args(&self) -> Vec<Vec<u8, Global>, Global>
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 is_single_arg(&self) -> bool
fn is_single_arg(&self) -> bool
Returns an indiciation if the value contained is exactly one
argument. It returns false if it’s zero or more than one. This
is used in some high level functions to intelligently switch
between
GET and MGET variants.impl<T> Send for TaskRef<T>where T: TaskQueue,
impl<T> Sync for TaskRef<T>where T: TaskQueue,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TaskRef<T>
impl<T> Unpin for TaskRef<T>where <T as TaskQueue>::Task: Unpin,
impl<T> !UnwindSafe for TaskRef<T>
Blanket Implementations§
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self to an expression for Diesel’s query builder. Read more