[][src]Struct core_foundation::filedescriptor::CFFileDescriptor

pub struct CFFileDescriptor(_);

Methods

impl CFFileDescriptor[src]

pub fn new(
    fd: RawFd,
    closeOnInvalidate: bool,
    callout: CFFileDescriptorCallBack,
    context: Option<&CFFileDescriptorContext>
) -> Option<CFFileDescriptor>
[src]

pub fn context(&self) -> CFFileDescriptorContext[src]

pub fn enable_callbacks(&self, callback_types: CFOptionFlags)[src]

pub fn disable_callbacks(&self, callback_types: CFOptionFlags)[src]

pub fn valid(&self) -> bool[src]

pub fn invalidate(&self)[src]

pub fn to_run_loop_source(&self, order: CFIndex) -> Option<CFRunLoopSource>[src]

Trait Implementations

impl ConcreteCFType for CFFileDescriptor[src]

impl TCFType for CFFileDescriptor[src]

type Ref = CFFileDescriptorRef

The reference type wrapped inside this type.

impl<'a> ToVoid<CFFileDescriptor> for &'a CFFileDescriptor[src]

impl ToVoid<CFFileDescriptor> for CFFileDescriptor[src]

impl ToVoid<CFFileDescriptor> for CFFileDescriptorRef[src]

impl Drop for CFFileDescriptor[src]

impl Clone for CFFileDescriptor[src]

impl Eq for CFFileDescriptor[src]

impl PartialEq<CFFileDescriptor> for CFFileDescriptor[src]

impl AsRawFd for CFFileDescriptor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> FromMutVoid for T where
    T: TCFType
[src]

impl<T> FromVoid for T where
    T: TCFType
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]