# Struct glib::source::SourceId [−] [src]

    pub struct SourceId(_);

The id of a source that is returned by `idle_add` and `timeout_add`.

A value of 0 is a good default as it is never a valid source ID.

## Trait Implementations

### `impl Clone for SourceId`
[src]

#### `fn clone(&self) -> SourceId`
[src]

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0
[src]

Performs copy-assignment from `source`. Read more

### `impl Copy for SourceId`
[src]

### `impl Debug for SourceId`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`
[src]

Formats the value using the given formatter. Read more

### `impl Default for SourceId`
[src]

#### `fn default() -> SourceId`
[src]

Returns the "default value" for a type. Read more

### `impl Eq for SourceId`
[src]

### `impl PartialEq for SourceId`
[src]

#### `fn eq(&self, __arg_0: &SourceId) -> bool`
[src]

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, __arg_0: &SourceId) -> bool`
[src]

This method tests for `!=`.

### `impl ToGlib for SourceId`
[src]

#### `type GlibType = u32`

#### `fn to_glib(&self) -> u32`
[src]

### `impl FromGlib<u32> for SourceId`
[src]

#### `fn from_glib(val: u32) -> SourceId`
[src]

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
↑
  Move up in search results
↓
  Move down in search results
↹
  Switch tab
⏎
  Go to active search result
+ / -
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)