pub struct RendererApi {
pub run: extern "C" fn() -> c_int,
pub request_frame: extern "C" fn(),
pub measure: unsafe extern "C" fn(*const u8, u32, u32, *mut MeasureResult) -> i32,
}Expand description
The Renderer’s half of the boundary, as the Host calls it.
Fields§
§run: extern "C" fn() -> c_int§request_frame: extern "C" fn()§measure: unsafe extern "C" fn(*const u8, u32, u32, *mut MeasureResult) -> i32Reads count request records from the buffer and writes count results. Only on
the UI thread, and normally from inside a Host call the Renderer made.
Trait Implementations§
Source§impl Clone for RendererApi
impl Clone for RendererApi
impl Copy for RendererApi
Auto Trait Implementations§
impl Freeze for RendererApi
impl RefUnwindSafe for RendererApi
impl Send for RendererApi
impl Sync for RendererApi
impl Unpin for RendererApi
impl UnsafeUnpin for RendererApi
impl UnwindSafe for RendererApi
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