Skip to main content

UnsubmittedTask

Struct UnsubmittedTask 

pub struct UnsubmittedTask { /* private fields */ }
Expand description

原服务的一份唯一待提交持有;结果等待不会隐式提交。 可跨线程转交,不支持Clone;本地首次提交仍限原所属线程(owner thread)。

Implementations§

Source§

impl UnsubmittedTask

Source

pub fn id(&self) -> TaskId

读取原服务或任务(Task)的固定身份;不创建新身份或权限。

Source

pub fn snapshot(&self) -> TaskSnapshot

读取原任务(Task)的基本事实,多个原子量不保证全局同一瞬间;不代表物理队列位置。

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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> OpaqueAttachment for T
where T: Send + Sync + 'static,

Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.