pub struct MainThreadToken { /* private fields */ }
Expand description
A token you only find on the main thread. It is required to call rendering functions
see also Sk::step
Implementations§
Source§impl MainThreadToken
impl MainThreadToken
Sourcepub fn get_event_report(&self) -> &Vec<StepperAction>
pub fn get_event_report(&self) -> &Vec<StepperAction>
Get the event report of this step. You don’t have to call this function if you use the derive macro
crate::IStepper
and implement the check_event
function.
see also Sk::step
check_event
Auto Trait Implementations§
impl Freeze for MainThreadToken
impl !RefUnwindSafe for MainThreadToken
impl Send for MainThreadToken
impl !Sync for MainThreadToken
impl Unpin for MainThreadToken
impl !UnwindSafe for MainThreadToken
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