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>,
impl<T, Parent> BelongsTo<Parent> for TaskRef<T>where
T: TaskQueue,
T::Task: BelongsTo<Parent>,
§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
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> 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 moreimpl<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