Struct GSource
#[repr(C)]pub struct GSource {Show 13 fields
pub callback_data: *mut c_void,
pub callback_funcs: *mut GSourceCallbackFuncs,
pub source_funcs: *const GSourceFuncs,
pub ref_count: u32,
pub context: *mut GMainContext,
pub priority: i32,
pub flags: u32,
pub source_id: u32,
pub poll_fds: *mut GSList,
pub prev: *mut GSource,
pub next: *mut GSource,
pub name: *mut i8,
pub priv_: *mut _GSourcePrivate,
}Fields§
§callback_data: *mut c_void§callback_funcs: *mut GSourceCallbackFuncs§source_funcs: *const GSourceFuncs§ref_count: u32§context: *mut GMainContext§priority: i32§flags: u32§source_id: u32§poll_fds: *mut GSList§prev: *mut GSource§next: *mut GSource§name: *mut i8§priv_: *mut _GSourcePrivateTrait Implementations§
Auto Trait Implementations§
impl Freeze for GSource
impl RefUnwindSafe for GSource
impl !Send for GSource
impl !Sync for GSource
impl Unpin for GSource
impl UnwindSafe for GSource
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