Skip to main content

Confirmation

Struct Confirmation 

pub struct Confirmation<'a, K: Send + Sync + 'static> { /* private fields */ }
Expand description

一次性确认同一登记的取消转交,由核心计时登记事实(TimerRegistration)取得转交资格时交出。

供计时访问接口(TimerAccess)的实现者在同步调用中消费。它借用原登记,只有一份, 无法从登记自行构造。取得确认并不表示原取消请求已记录到来源或原值(original value)已移除。

Implementations§

§

impl<'a, K: Send + Sync + 'static> Confirmation<'a, K>

pub fn is_for(&self, registration: &TimerRegistration<K>) -> bool

检查是否是同一登记对象。可在修改预备节点(node)之前使用。

pub fn deferred(self, retained: &TimerRegistration<K>) -> RawResult<(), Self>

在同一登记由实际接续者保管之后、原节点(node)可被取出之前,确认待接续。 若输入关联不同登记,返还同一个确认值,原登记与传入登记均保持原状态。

pub fn source_finished(self)

同一来源已有可核的合法移除或关闭接续时结清转交责任。 返回只确认责任已交接,不报告实际取消成功。

Auto Trait Implementations§

§

impl<'a, K> !RefUnwindSafe for Confirmation<'a, K>

§

impl<'a, K> !UnwindSafe for Confirmation<'a, K>

§

impl<'a, K> Forget for Confirmation<'a, K>

§

impl<'a, K> Freeze for Confirmation<'a, K>
where &'a TimerRegistration<K>: Freeze,

§

impl<'a, K> Move for Confirmation<'a, K>

§

impl<'a, K> Send for Confirmation<'a, K>
where &'a TimerRegistration<K>: Send,

§

impl<'a, K> Sync for Confirmation<'a, K>
where &'a TimerRegistration<K>: Sync,

§

impl<'a, K> Unpin for Confirmation<'a, K>
where &'a TimerRegistration<K>: Unpin,

§

impl<'a, K> UnsafeUnpin for Confirmation<'a, K>

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.