Struct GSourceFuncs
#[repr(C)]pub struct GSourceFuncs {
pub prepare: Option<unsafe extern "C" fn(*mut GSource, *mut i32) -> i32>,
pub check: Option<unsafe extern "C" fn(*mut GSource) -> i32>,
pub dispatch: Option<unsafe extern "C" fn(*mut GSource, Option<unsafe extern "C" fn(*mut c_void) -> i32>, *mut c_void) -> i32>,
pub finalize: Option<unsafe extern "C" fn(*mut GSource)>,
pub closure_callback: Option<unsafe extern "C" fn(*mut c_void) -> i32>,
pub closure_marshal: Option<unsafe extern "C" fn()>,
}Fields§
§prepare: Option<unsafe extern "C" fn(*mut GSource, *mut i32) -> i32>§check: Option<unsafe extern "C" fn(*mut GSource) -> i32>§dispatch: Option<unsafe extern "C" fn(*mut GSource, Option<unsafe extern "C" fn(*mut c_void) -> i32>, *mut c_void) -> i32>§finalize: Option<unsafe extern "C" fn(*mut GSource)>§closure_callback: Option<unsafe extern "C" fn(*mut c_void) -> i32>§closure_marshal: Option<unsafe extern "C" fn()>Trait Implementations§
§impl Clone for GSourceFuncs
impl Clone for GSourceFuncs
§fn clone(&self) -> GSourceFuncs
fn clone(&self) -> GSourceFuncs
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 more§impl Debug for GSourceFuncs
impl Debug for GSourceFuncs
impl Copy for GSourceFuncs
Auto Trait Implementations§
impl Freeze for GSourceFuncs
impl RefUnwindSafe for GSourceFuncs
impl Send for GSourceFuncs
impl Sync for GSourceFuncs
impl Unpin for GSourceFuncs
impl UnwindSafe for GSourceFuncs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more