Struct stack_queue::task::TaskRef
source · 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.§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 for TaskRef<T>
impl<T> PartialEq for TaskRef<T>
source§impl<T> PartialOrd for TaskRef<T>
impl<T> PartialOrd for TaskRef<T>
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>
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 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> !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> 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