Skip to main content

Session

Trait Session 

Source
pub trait Session: Close<State: Unmap> + Sized {
    type Ring;
    type Layout: Canary;
    type Owned;
    type Probe: Copy;
    type Outcome: Outcome<Probe = Self::Probe>;
    type Error;
    type Pending: Pending<Session = Self>;

    // Required method
    fn submit(
        self,
        entry: &Self::Owned,
        probe: Self::Probe,
    ) -> Result<Self::Pending, Stopped<Self, Cause<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error>>>;
}
Expand description

An idle capability session owns its canary mappings and fixed-file state.

Required Associated Types§

Source

type Ring

Source

type Layout: Canary

Source

type Owned

Source

type Probe: Copy

Source

type Outcome: Outcome<Probe = Self::Probe>

Source

type Error

Source

type Pending: Pending<Session = Self>

Required Methods§

Source

fn submit( self, entry: &Self::Owned, probe: Self::Probe, ) -> Result<Self::Pending, Stopped<Self, Cause<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§