pub struct SourceId(NonZeroU32);
Expand description
The id of a source that is returned by idle_add
and timeout_add
.
This type does not implement Clone
to prevent calling SourceId::remove
multiple times on the same source.
Tuple Fields§
§0: NonZeroU32
Implementations§
Trait Implementations§
impl Eq for SourceId
impl StructuralPartialEq for SourceId
Auto Trait Implementations§
impl Freeze for SourceId
impl RefUnwindSafe for SourceId
impl Send for SourceId
impl Sync for SourceId
impl Unpin for SourceId
impl UnwindSafe for SourceId
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