Skip to main content

Moved

Struct Moved 

Source
pub struct Moved { /* private fields */ }
Expand description

One linear move of an existing owner. It retains the exact original admission claim; receiving it creates a new live wrapper, while all aliases of the sender stay revoked. The capability is closed only after this move and any physical borrows have ended.

Implementations§

Source§

impl Moved

Source

pub fn from_shared(owner: Rc<Owned>) -> Result<Self>

Revoke a table-owned sender before its admission can suspend. Existing physical calls keep their own pins, but no alias can issue another method after the move.

Source

pub fn nominal(&self) -> &Nominal

Source

pub fn with_backend<T: Capability, R>( &self, operation: impl FnOnce(&T) -> R, ) -> Option<R>

Inspect the original issuer backend without exposing or duplicating its authority.

Source

pub fn receive(self) -> Owned

Receive the moved owner under the same claim, never under the receiving Orb’s claim.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Moved

§

impl !Send for Moved

§

impl !Sync for Moved

§

impl !UnwindSafe for Moved

§

impl Forget for Moved

§

impl Freeze for Moved
where *const RcInner<dyn Capability> is !null: Freeze, PhantomData<RcInner<dyn Capability>>: Freeze, *const RcInner<Reference> is !null: Freeze, PhantomData<RcInner<Reference>>: Freeze,

§

impl Move for Moved

§

impl Unpin for Moved

§

impl UnsafeUnpin for Moved
where *const RcInner<dyn Capability> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Capability>>: UnsafeUnpin, *const RcInner<Reference> is !null: UnsafeUnpin, PhantomData<RcInner<Reference>>: UnsafeUnpin,

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, 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.