pub struct DisplayLink { /* private fields */ }Implementations§
Source§impl DisplayLink
impl DisplayLink
Sourcepub fn new<F>(callback: F) -> Option<Self>
pub fn new<F>(callback: F) -> Option<Self>
Creates a new iOS DisplayLink instance.
macos does require the callback to be Send.
pub fn on_display<F>(display_id: u32, callback: F) -> Option<Self>
pub fn set_current_display(&mut self, display_id: u32)
pub fn is_paused(&self) -> bool
pub fn pause(&mut self) -> Result<(), PauseError>
pub fn resume(&mut self) -> Result<(), ResumeError>
Trait Implementations§
Source§impl Debug for DisplayLink
impl Debug for DisplayLink
Auto Trait Implementations§
impl Freeze for DisplayLink
impl !RefUnwindSafe for DisplayLink
impl !Send for DisplayLink
impl !Sync for DisplayLink
impl Unpin for DisplayLink
impl !UnwindSafe for DisplayLink
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