Struct crankstart::system::System
source · pub struct System(_);
Implementations§
source§impl System
impl System
pub fn get() -> Self
pub fn set_update_callback(&self, f: PDCallbackFunction) -> Result<(), Error>
pub fn is_crank_docked(&self) -> Result<bool, Error>
pub fn get_crank_angle(&self) -> Result<f32, Error>
pub fn get_crank_change(&self) -> Result<f32, Error>
pub fn log_to_console(text: &str)
pub fn log_to_console_raw(text: &str)
pub fn error(text: &str)
pub fn error_raw(text: &str)
pub fn get_seconds_since_epoch(&self) -> Result<(usize, usize), Error>
pub fn get_current_time_milliseconds(&self) -> Result<usize, Error>
pub fn reset_elapsed_time(&self) -> Result<(), Error>
pub fn get_elapsed_time(&self) -> Result<f32, Error>
pub fn draw_fps(&self, x: i32, y: i32) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for System
impl !Send for System
impl !Sync for System
impl Unpin for System
impl UnwindSafe for System
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