Skip to main content

AesGcmHandle

Struct AesGcmHandle 

Source
pub struct AesGcmHandle<'t> { /* private fields */ }
Available on crate feature unstable only.
Expand description

The handle to a pending AES-GCM operation.

Dropping it before the operation completes cancels the operation.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Implementations§

Source§

impl AesGcmHandle<'_>

Source

pub fn poll(&mut self) -> bool

Polls the operation. Returns whether it has completed.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source

pub fn wait_blocking(self) -> Result<(), GcmError>

Polls the operation to completion, by busy-looping, and returns its result.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source

pub async fn wait(&mut self) -> Result<(), GcmError>

Waits until the operation completes, and returns its result.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source

pub fn cancel(&mut self) -> impl Future<Output = ()>

Cancels the operation, and waits until it leaves the work queue.

An operation that has not started ends with GcmError::Cancelled. One that the backend has started runs to completion, because the hardware cannot stop part way, and keeps its result. Self::wait or Self::wait_blocking then returns the result.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Auto Trait Implementations§

§

impl<'t> !RefUnwindSafe for AesGcmHandle<'t>

§

impl<'t> !Send for AesGcmHandle<'t>

§

impl<'t> !Sync for AesGcmHandle<'t>

§

impl<'t> !UnwindSafe for AesGcmHandle<'t>

§

impl<'t> Forget for AesGcmHandle<'t>

§

impl<'t> Freeze for AesGcmHandle<'t>

§

impl<'t> Move for AesGcmHandle<'t>

§

impl<'t> Unpin for AesGcmHandle<'t>

§

impl<'t> UnsafeUnpin for AesGcmHandle<'t>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

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
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = !

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.