pub struct DisplayLink(/* private fields */);Implementations§
Source§impl DisplayLink
impl DisplayLink
Sourcepub unsafe fn new() -> Option<Self>
pub unsafe fn new() -> Option<Self>
Apple docs: CVDisplayLinkCreateWithActiveCGDisplays
Sourcepub unsafe fn on_display(display_id: u32) -> Option<Self>
pub unsafe fn on_display(display_id: u32) -> Option<Self>
Apple docs: CVDisplayLinkCreateWithCGDisplay
Methods from Deref<Target = DisplayLinkRef>§
Sourcepub unsafe fn set_output_callback(
&mut self,
callback: CVDisplayLinkOutputCallback,
user_info: *mut c_void,
)
pub unsafe fn set_output_callback( &mut self, callback: CVDisplayLinkOutputCallback, user_info: *mut c_void, )
Apple docs: CVDisplayLinkSetOutputCallback
Sourcepub unsafe fn set_current_display(&mut self, display_id: u32)
pub unsafe fn set_current_display(&mut self, display_id: u32)
Apple docs: CVDisplayLinkSetCurrentCGDisplay
Sourcepub unsafe fn start(&mut self)
pub unsafe fn start(&mut self)
Apple docs: CVDisplayLinkStart
Sourcepub unsafe fn stop(&mut self)
pub unsafe fn stop(&mut self)
Apple docs: CVDisplayLinkStop
Trait Implementations§
Source§impl AsRef<DisplayLinkRef> for DisplayLink
impl AsRef<DisplayLinkRef> for DisplayLink
Source§fn as_ref(&self) -> &DisplayLinkRef
fn as_ref(&self) -> &DisplayLinkRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<DisplayLinkRef> for DisplayLink
impl Borrow<DisplayLinkRef> for DisplayLink
Source§fn borrow(&self) -> &DisplayLinkRef
fn borrow(&self) -> &DisplayLinkRef
Immutably borrows from an owned value. Read more
Source§impl Clone for DisplayLink
impl Clone for DisplayLink
Source§fn clone(&self) -> DisplayLink
fn clone(&self) -> DisplayLink
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplayLink
impl Debug for DisplayLink
Source§impl Deref for DisplayLink
impl Deref for DisplayLink
Source§type Target = DisplayLinkRef
type Target = DisplayLinkRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &DisplayLinkRef
fn deref(&self) -> &DisplayLinkRef
Dereferences the value.
Source§impl DerefMut for DisplayLink
impl DerefMut for DisplayLink
Source§fn deref_mut(&mut self) -> &mut DisplayLinkRef
fn deref_mut(&mut self) -> &mut DisplayLinkRef
Mutably dereferences the value.
Source§impl Drop for DisplayLink
impl Drop for DisplayLink
Source§impl ForeignType for DisplayLink
impl ForeignType for DisplayLink
Source§type CType = CVDisplayLink
type CType = CVDisplayLink
The raw C type.
Source§type Ref = DisplayLinkRef
type Ref = DisplayLinkRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut CVDisplayLink) -> DisplayLink
unsafe fn from_ptr(ptr: *mut CVDisplayLink) -> DisplayLink
Constructs an instance of this type from its raw type.
Source§fn as_ptr(&self) -> *mut CVDisplayLink
fn as_ptr(&self) -> *mut CVDisplayLink
Returns a raw pointer to the wrapped value.
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