#[non_exhaustive]pub struct Ipc;Expand description
Handle that posts requests to a CPU through the IPC interrupt.
Copies of this handle share one state table.
Implementations§
Source§impl Ipc
impl Ipc
Sourcepub const fn new(_ipc: IPC<'_>) -> Self
pub const fn new(_ipc: IPC<'_>) -> Self
Creates a new Ipc handle.
The constructor does not install an interrupt handler. crate::init installs the IPC
path.
Sourcepub fn post(
self,
core: Cpu,
request: &'static IpcRequest,
) -> Result<Ticket, IpcError>
pub fn post( self, core: Cpu, request: &'static IpcRequest, ) -> Result<Ticket, IpcError>
Queues a run of request on core, and returns a Ticket that can be used to wait for
the run.
This function never waits. If request is pending on core, the post joins that run. If
request runs on core, the post queues a new run, which starts after the current run
returns.
§Errors
IpcError::Offlinewhencoredoes not take IPC interrupts.IpcError::Busywhenrequestis pending on a CPU other thancore, or runs on it.
Trait Implementations§
impl Copy for Ipc
Available on crate feature
unstable only.Auto Trait Implementations§
impl Forget for Ipc
impl Freeze for Ipc
impl Move for Ipc
impl RefUnwindSafe for Ipc
impl Send for Ipc
impl Sync for Ipc
impl Unpin for Ipc
impl UnsafeUnpin for Ipc
impl UnwindSafe for Ipc
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)