pub struct DisplayLinkRef(/* private fields */);Implementations§
Source§impl DisplayLinkRef
impl 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 ForeignTypeRef for DisplayLinkRef
impl ForeignTypeRef for DisplayLinkRef
Source§type CType = CVDisplayLink
type CType = CVDisplayLink
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
Source§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type.
Source§impl ToOwned for DisplayLinkRef
impl ToOwned for DisplayLinkRef
Source§type Owned = DisplayLink
type Owned = DisplayLink
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> DisplayLink
fn to_owned(&self) -> DisplayLink
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl !Freeze for DisplayLinkRef
impl !RefUnwindSafe for DisplayLinkRef
impl Send for DisplayLinkRef
impl !Sync for DisplayLinkRef
impl Unpin for DisplayLinkRef
impl UnwindSafe for DisplayLinkRef
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