pub struct AesHandle<'t>(/* private fields */);Expand description
The handle to the pending AES operation.
This object is returned by AesContext::process and AesContext::process_in_place.
Dropping this handle before the operation finishes will cancel the operation.
For an example, see the documentation of AesBackend.
Implementations§
Source§impl AesHandle<'_>
impl AesHandle<'_>
Sourcepub fn poll(&mut self) -> bool
pub fn poll(&mut self) -> bool
Polls the status of the work item.
This function returns true if the item has been processed.
Sourcepub fn wait_blocking(self) -> Status
pub fn wait_blocking(self) -> Status
Polls the work item to completion, by busy-looping.
This function returns immediately if poll returns true.
Auto Trait Implementations§
impl<'t> Freeze for AesHandle<'t>
impl<'t> !RefUnwindSafe for AesHandle<'t>
impl<'t> !Send for AesHandle<'t>
impl<'t> !Sync for AesHandle<'t>
impl<'t> Unpin for AesHandle<'t>
impl<'t> !UnwindSafe for AesHandle<'t>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more