sel4

Trait InvocationContext

Source
pub trait InvocationContext {
    // Required method
    fn with_context<T>(&mut self, f: impl FnOnce(&mut IpcBuffer) -> T) -> T;
}
Expand description

A strategy for discovering the current thread’s IPC buffer.

Required Methods§

Source

fn with_context<T>(&mut self, f: impl FnOnce(&mut IpcBuffer) -> T) -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<U: InvocationContext> InvocationContext for &RefCell<U>

Source§

fn with_context<T>(&mut self, f: impl FnOnce(&mut IpcBuffer) -> T) -> T

Source§

impl<U: InvocationContext> InvocationContext for &mut U

Source§

fn with_context<T>(&mut self, f: impl FnOnce(&mut IpcBuffer) -> T) -> T

Implementors§