Struct display_link::cvdisplaylink::DisplayLinkRef
source · pub struct DisplayLinkRef(_);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 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
§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§impl ToOwned for DisplayLinkRef
impl ToOwned for DisplayLinkRef
§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