Skip to main content

Call

Struct Call 

Source
pub struct Call<'app, R, P, O> { /* private fields */ }
Expand description

One exact capability invocation joining its pinned owner, selection, and operation.

Implementations§

Source§

impl<'app, R, P, O> Call<'app, R, P, O>

Source

pub const fn new(app: Pin<&'app mut R>, plan: P, op: O) -> Self

Joins one runtime-owned operation with its exact pinned root.

Source

pub fn into_parts(self) -> (Pin<&'app mut R>, P, O)

Source

pub fn map_owner<U>( self, map: impl FnOnce(Pin<&'app mut R>) -> Pin<&'app mut U>, ) -> Call<'app, U, P, O>

Projects the pinned owner while preserving the selection and operation proofs.

Source§

impl<R, O> Call<'_, R, Infallible, O>

Source

pub fn into_never(self) -> !

Consumes an invocation whose selection proof has no inhabitants.

Auto Trait Implementations§

§

impl<'app, R, P, O> !UnwindSafe for Call<'app, R, P, O>

§

impl<'app, R, P, O> Forget for Call<'app, R, P, O>

§

impl<'app, R, P, O> Freeze for Call<'app, R, P, O>

§

impl<'app, R, P, O> RefUnwindSafe for Call<'app, R, P, O>

§

impl<'app, R, P, O> Send for Call<'app, R, P, O>
where Pin<&'app mut R>: Send, P: Send, O: Send,

§

impl<'app, R, P, O> Sync for Call<'app, R, P, O>
where Pin<&'app mut R>: Sync, P: Sync, O: Sync,

§

impl<'app, R, P, O> Unpin for Call<'app, R, P, O>
where Pin<&'app mut R>: Unpin, P: Unpin, O: Unpin,

§

impl<'app, R, P, O> UnsafeUnpin for Call<'app, R, P, O>

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> Convert<T> for T

Source§

fn into(self) -> T

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.