Struct core_foundation::runloop::CFRunLoop
source · pub struct CFRunLoop(/* private fields */);
Implementations§
source§impl CFRunLoop
impl CFRunLoop
pub fn get_current() -> CFRunLoop
pub fn get_main() -> CFRunLoop
pub fn run_current()
pub fn run_in_mode( mode: CFStringRef, duration: Duration, return_after_source_handled: bool ) -> CFRunLoopRunResult
pub fn stop(&self)
pub fn current_mode(&self) -> Option<String>
pub fn contains_timer( &self, timer: &CFRunLoopTimer, mode: CFRunLoopMode ) -> bool
pub fn add_timer(&self, timer: &CFRunLoopTimer, mode: CFRunLoopMode)
pub fn remove_timer(&self, timer: &CFRunLoopTimer, mode: CFRunLoopMode)
pub fn contains_source( &self, source: &CFRunLoopSource, mode: CFRunLoopMode ) -> bool
pub fn add_source(&self, source: &CFRunLoopSource, mode: CFRunLoopMode)
pub fn remove_source(&self, source: &CFRunLoopSource, mode: CFRunLoopMode)
pub fn contains_observer( &self, observer: &CFRunLoopObserver, mode: CFRunLoopMode ) -> bool
pub fn add_observer(&self, observer: &CFRunLoopObserver, mode: CFRunLoopMode)
pub fn remove_observer(&self, observer: &CFRunLoopObserver, mode: CFRunLoopMode)
Trait Implementations§
source§impl PartialEq for CFRunLoop
impl PartialEq for CFRunLoop
source§impl TCFType for CFRunLoop
impl TCFType for CFRunLoop
§type Ref = *mut __CFRunLoop
type Ref = *mut __CFRunLoop
The reference type wrapped inside this type.
source§fn as_concrete_TypeRef(&self) -> CFRunLoopRef
fn as_concrete_TypeRef(&self) -> CFRunLoopRef
Returns the object as its concrete
TypeRef
.source§unsafe fn wrap_under_get_rule(reference: CFRunLoopRef) -> Self
unsafe fn wrap_under_get_rule(reference: CFRunLoopRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef
subclass. Use this
when following Core Foundation’s “Get Rule”. The reference count is bumped.source§fn as_CFTypeRef(&self) -> CFTypeRef
fn as_CFTypeRef(&self) -> CFTypeRef
Returns the object as a raw
CFTypeRef
. The reference count is not adjusted.source§unsafe fn wrap_under_create_rule(reference: CFRunLoopRef) -> Self
unsafe fn wrap_under_create_rule(reference: CFRunLoopRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef
subclass. Use this
when following Core Foundation’s “Create Rule”. The reference count is not bumped.source§fn as_CFType(&self) -> CFType
fn as_CFType(&self) -> CFType
Returns the object as a wrapped
CFType
. The reference count is incremented by one.source§fn into_CFType(self) -> CFTypewhere
Self: Sized,
fn into_CFType(self) -> CFTypewhere Self: Sized,
Returns the object as a wrapped
CFType
. Consumes self and avoids changing the reference
count.source§fn retain_count(&self) -> CFIndex
fn retain_count(&self) -> CFIndex
Returns the reference count of the object. It is unwise to do anything other than test
whether the return value of this method is greater than zero.
source§fn instance_of<OtherCFType: TCFType>(&self) -> bool
fn instance_of<OtherCFType: TCFType>(&self) -> bool
Returns
true
if this value is an instance of another type.impl ConcreteCFType for CFRunLoop
impl Eq for CFRunLoop
impl Send for CFRunLoop
impl Sync for CFRunLoop
Auto Trait Implementations§
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