pub struct Ticket { /* private fields */ }Expand description
A run that Ipc::post queued or joined.
If a later run of the request ended, the ticket gives the outcome of that later run.
Implementations§
Source§impl Ticket
impl Ticket
Sourcepub fn wait(self, deadline: Instant) -> Result<(), IpcError>
pub fn wait(self, deadline: Instant) -> Result<(), IpcError>
Waits until the run of this ticket ends, or until deadline.
§Errors
IpcError::Offlinewhen the CPU stopped before the run.IpcError::Timeoutwhen the deadline passed before the run ended. The run stays queued, and can happen later.IpcError::WouldDeadlockwhen the run is on the current CPU, and the caller masks the IPC interrupt: it runs in an interrupt handler, or with interrupts disabled.
Trait Implementations§
impl Copy for Ticket
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for Ticket
impl RefUnwindSafe for Ticket
impl Send for Ticket
impl Sync for Ticket
impl Unpin for Ticket
impl UnsafeUnpin for Ticket
impl UnwindSafe for Ticket
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)