Skip to main content

ActiveSequencePermit

Struct ActiveSequencePermit 

Source
pub struct ActiveSequencePermit<'resources, 'exec, R>
where R: DeviceRuntime,
{ /* private fields */ }
Expand description

Non-cloneable guard for an admitted active-sequence slot. Dispatch borrows this permit; the sequence owner retains it until all asynchronous work is synchronized or cancelled.

Implementations§

Source§

impl<'resources, 'exec, R> ActiveSequencePermit<'resources, 'exec, R>
where R: DeviceRuntime,

Source

pub fn resources(&self) -> &'resources AdmittedSequenceResources<R>

Source

pub fn run_id(&self) -> &RunId

Source

pub fn request_id(&self) -> &RequestIdentity

Source

pub fn sequence_authority(&self) -> SequenceAuthorityId

Source

pub fn coordinator_id(&self) -> LogicalAdmissionCoordinatorId

Source

pub fn backing_slices(&self) -> &[LogicalBackingSliceAuthority]

Source

pub const fn activation_epoch(&self) -> u64

Source

pub fn runtime_implementation_fingerprint(&self) -> &str

Source

pub fn synchronize( self, ) -> Result<SynchronizedSequencePermit<'resources, 'exec, R>, SequenceSynchronizationFailure<'resources, 'exec, R>>

Consumes dispatch authority before draining the exact bound stream. Successful synchronization returns a different typestate that cannot be passed back to OperationDispatch.

Trait Implementations§

Source§

impl<R> Drop for ActiveSequencePermit<'_, '_, R>
where R: DeviceRuntime,

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<'resources, 'exec, R> !RefUnwindSafe for ActiveSequencePermit<'resources, 'exec, R>

§

impl<'resources, 'exec, R> !UnwindSafe for ActiveSequencePermit<'resources, 'exec, R>

§

impl<'resources, 'exec, R> Freeze for ActiveSequencePermit<'resources, 'exec, R>

§

impl<'resources, 'exec, R> Send for ActiveSequencePermit<'resources, 'exec, R>

§

impl<'resources, 'exec, R> Sync for ActiveSequencePermit<'resources, 'exec, R>

§

impl<'resources, 'exec, R> Unpin for ActiveSequencePermit<'resources, 'exec, R>

§

impl<'resources, 'exec, R> UnsafeUnpin for ActiveSequencePermit<'resources, 'exec, R>

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

Source§

type Output = T

Should always be Self
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, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V