pub struct Source<Callback = SourceCallback> { /* private fields */ }Implementations§
Source§impl<C> Source<C>where
C: Into<RawCallback>,
impl<C> Source<C>where
C: Into<RawCallback>,
pub fn set_callback(&self, callback: C)
pub fn set_priority(&self, priority: gint)
Trait Implementations§
Source§impl<C> AsRef<Source<C>> for AttachedSource<C>
impl<C> AsRef<Source<C>> for AttachedSource<C>
impl<C> Send for Source<C>where
C: Into<RawCallback>,
Auto Trait Implementations§
impl<Callback> Freeze for Source<Callback>
impl<Callback> RefUnwindSafe for Source<Callback>where
Callback: RefUnwindSafe,
impl<Callback = SourceCallback> !Sync for Source<Callback>
impl<Callback> Unpin for Source<Callback>where
Callback: Unpin,
impl<Callback> UnwindSafe for Source<Callback>where
Callback: UnwindSafe,
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