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§

source§

impl<T> TaskRef<T>where T: TaskQueue,

source

pub fn task(&self) -> &T::Task

Trait Implementations§

source§

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

The foreign key of this struct
§

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>

Returns the foreign key for self
source§

fn foreign_key_column() -> Self::ForeignKeyColumn

Returns the foreign key column of this struct’s table
source§

impl<T> Debug for TaskRef<T>where T: TaskQueue, <T as TaskQueue>::Task: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Deref for TaskRef<T>where T: TaskQueue,

§

type Target = <T as TaskQueue>::Task

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<T> PartialEq<TaskRef<T>> for TaskRef<T>where T: TaskQueue, T::Task: PartialEq,

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> PartialOrd<TaskRef<T>> for TaskRef<T>where T: TaskQueue, T::Task: PartialOrd,

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<T> Send for TaskRef<T>where T: TaskQueue,

source§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoSql for T

source§

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 more
source§

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
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.