MCPcopy Create free account

hub / github.com/Mange/mpris-rs / functions

Functions402 in github.com/Mange/mpris-rs

Methodinto_string
Consumes `self` and returns the inner value as a `Some(String)` if it is a `MetadataValue::String`, or `None` otherwise.
src/metadata/value.rs:332
Methodinto_u16
Consumes `self` and returns the inner value as a `Some(u16)` if it is an unsigned integer smaller than or equal to u16, or `None` otherwise.
src/metadata/value.rs:251
Methodinto_u32
Consumes `self` and returns the inner value as a `Some(u32)` if it is an unsigned integer smaller than or equal to u32, or `None` otherwise.
src/metadata/value.rs:261
Methodinto_u64
Consumes `self` and returns the inner value as a `Some(u64)` if it is an unsigned integer smaller than or equal to u64, or `None` otherwise.
src/metadata/value.rs:272
Methodinto_u8
Consumes `self` and returns the inner value as a `Some(u8)` if it is a `MetadataValue::U8`, or `None` otherwise.
src/metadata/value.rs:242
Methodis_array
Returns true if `self` is an Array
src/metadata/value.rs:410
Methodis_bool
Returns true if `self` is a Bool
src/metadata/value.rs:405
Methodis_f64
Returns true if `self` is an F64
src/metadata/value.rs:400
Methodis_i16
Returns true if `self` is an I16
src/metadata/value.rs:365
Methodis_i32
Returns true if `self` is an I32
src/metadata/value.rs:370
Methodis_i64
Returns true if `self` is an I64
src/metadata/value.rs:375
Methodis_map
Returns true if `self` is a Map
src/metadata/value.rs:415
Methodis_string
Returns true if `self` is a String
src/metadata/value.rs:360
Methodis_u16
Returns true if `self` is a U16
src/metadata/value.rs:385
Methodis_u32
Returns true if `self` is a U32
src/metadata/value.rs:390
Methodis_u64
Returns true if `self` is a U64
src/metadata/value.rs:395
Methodis_u8
Returns true if `self` is a U8
src/metadata/value.rs:380
Methodis_unsupported
Returns true if `self` is a Unsupported
src/metadata/value.rs:420
Functionit_builds_values_hash
()
src/metadata.rs:223
Functionit_calculates_whole_micros_from_durations
()
src/extensions.rs:44
Functionit_calculates_whole_millis_from_durations
()
src/extensions.rs:38
Functionit_constructs_durations_from_micros
()
src/extensions.rs:31
Functionit_creates_new_metadata
()
src/metadata.rs:211
Functionit_does_not_progress_when_paused
()
src/progress.rs:451
Functionit_has_iterators
()
src/metadata.rs:235
Functionit_inserts_after_given_id
()
src/track_list.rs:448
Functionit_inserts_at_end_on_empty
()
src/track_list.rs:504
Functionit_inserts_at_end_on_missing_id
()
src/track_list.rs:476
Functionit_progresses_position_when_playing_at_microseconds
()
src/progress.rs:434
Functionit_supports_arrays_of_strings
()
src/metadata/value.rs:604
Functionit_supports_arrays_of_variants
()
src/metadata/value.rs:588
Functionit_supports_blank_metadata
()
src/metadata.rs:217
Functionit_supports_booleans
()
src/metadata/value.rs:579
Functionit_supports_floats
()
src/metadata/value.rs:570
Functionit_supports_maps_of_variants
()
src/metadata/value.rs:617
Functionit_supports_object_paths_as_strings
()
src/metadata/value.rs:531
Functionit_supports_signed_integers
()
src/metadata/value.rs:556
Functionit_supports_strings
()
src/metadata/value.rs:522
Functionit_supports_unsigned_integers
()
src/metadata/value.rs:540
Methodkey_name
(&self)
examples/control.rs:69
Methodkind
Returns a simple enum representing the type of value that this value holds. # Examples ```rust # use mpris::Metadata; # let metadata = Metadata::new
src/metadata/value.rs:108
Methodlength
Returns the length of the current track as a [`Duration`].
src/progress.rs:367
Methodloop_status
(&self)
src/generated/media_player_player.rs:126
Functionmain
()
examples/events.rs:4
Functionmain
()
examples/capabilities.rs:11
Functionmain
()
examples/play_pause.rs:3
Functionmain
()
examples/detecting_shutting_down.rs:18
Functionmain
()
examples/tracklist_control.rs:4
Functionmain
()
examples/get_metadata.rs:4
Functionmain
()
examples/show_tracklist.rs:4
Functionmain
()
examples/control.rs:445
Functionmain
()
examples/progress_tracker.rs:68
Methodmetadata
(&self)
src/generated/media_player_player.rs:150
Methodnew
Create a new [`TrackID`] from a string-like entity. This is not something you should normally do as the IDs are temporary and will only work if the P
src/track_list.rs:115
Methodnew
Create a new [`Metadata`] struct with a given `track_id`. This is mostly useful for test fixtures and other places where you want to work with mock d
src/metadata.rs:25
Methodnew
(connection: Connection)
src/pooled_connection.rs:24
Methodnew
(player: &Player)
src/event.rs:117
Methodnew
Construct a new [`ProgressTracker`] for the provided [`Player`]. The `interval_ms` value is the desired time between ticks when calling the [`tick`](
src/progress.rs:105
Methodnew
Create a new [`Player`] using a D-Bus connection and address information. If no player is running on this bus name an [`Err`] will be returned.
src/player.rs:45
Methodnew
Creates a new [`PlayerFinder`] with a new default D-Bus connection. Use [`for_connection`](Self::for_connection) if you want to provide the D-Bus con
src/find.rs:47
Methodnext
(&mut self)
src/track_list.rs:413
Methodnext
(&mut self)
src/event.rs:274
Methodnext
(&self)
src/generated/media_player_player.rs:78
Methodno_track
Return a new [`TrackID`] that matches the MPRIS standard for the "No track" sentinel value. Some APIs takes this in order to signal a missing value f
src/track_list.rs:137
Methodopen_uri
(&self, uri: &str)
src/generated/media_player_player.rs:114
Methodorderings
(&self)
src/generated/media_player_playlists.rs:93
Methodpause
(&self)
src/generated/media_player_player.rs:86
Methodpending_events
Removes all pending events from a bus' queue and returns them. If you want to non-destructively check if a bus has anything queued, use [`has_pending
src/pooled_connection.rs:104
Methodplay
(&self)
src/generated/media_player_player.rs:98
Methodplay_pause
(&self)
src/generated/media_player_player.rs:90
Methodplayback_status
(&self)
src/generated/media_player_player.rs:118
Methodplayer_timeout_ms
Get the current timeout value that all [`Player`]s created through this finder will inherit Can be set with [`set_player_timeout_ms`][Self::set_playe
src/find.rs:67
Methodplaylist_count
(&self)
src/generated/media_player_playlists.rs:85
Methodposition
(&self)
src/generated/media_player_player.rs:166
Methodprevious
(&self)
src/generated/media_player_player.rs:82
Methodprocess_events_blocking_until_received
Process events in a blocking fashion until any new event is found.
src/pooled_connection.rs:139
Methodquit
(&self)
src/generated/media_player.rs:42
Methodraise
(&self)
src/generated/media_player.rs:38
Methodread
(i: &mut arg::Iter)
src/generated/media_player_playlists.rs:47
Methodread
(i: &mut arg::Iter)
src/generated/media_player_tracklist.rs:51
Methodreload_cache
Clears all cache and reloads metadata for all tracks. Cache will be replaced *after* the new metadata has been loaded, so on load errors the cache wi
src/track_list.rs:329
Methodremove_track
(&self, track_id: dbus::Path)
src/generated/media_player_tracklist.rs:170
Methodseek
(&self, offset: i64)
src/generated/media_player_player.rs:102
Methodset_dbus_timeout_ms
Change the D-Bus communication timeout.
src/player.rs:100
Methodset_fullscreen
Asks the player to change fullscreen state. If method call succeeded, `Ok(true)` will be returned. This property was added in MPRIS 2.2, and not all
src/player.rs:1099
Methodset_fullscreen
(&self, value: bool)
src/generated/media_player.rs:118
Methodset_loop_status
(&self, value: String)
src/generated/media_player_player.rs:238
Methodset_player_timeout_ms
Set the timeout value that all [`Player`]s created through this finder will inherit
src/find.rs:72
Methodset_position
(&self, track_id: dbus::Path, position: i64)
src/generated/media_player_player.rs:106
Methodset_shuffle
(&self, value: bool)
src/generated/media_player_player.rs:256
Methodset_volume
(&self, value: f64)
src/generated/media_player_player.rs:265
Methodset_volume_checked
Set the volume of the player, if the player indicates that it can be controlled. Volume should be between 0.0 and 1.0. Above 1.0 is possible, but not
src/player.rs:1274
Methodshuffle
(&self)
src/generated/media_player_player.rs:142
Methodsize_hint
(&self)
src/find.rs:227
Methodstop
(&self)
src/generated/media_player_player.rs:94
Methodstring_for_display
(&self)
examples/capabilities.rs:101
Methodtrack_list
Current tracklist of the player. Will be kept up to date.
src/event.rs:128
Methodtrack_number
The track number on the disc of the album the track appears on. Based on `xesam:trackNumber` > The track number on the album disc.
src/metadata.rs:146
Methodtracks
(&self)
src/generated/media_player_tracklist.rs:182
Methodtry_parse
Tries to convert the provided [`D-Bus message`](Message) into a MprisMessage; returns [`None`] if the message was not supported.
src/pooled_connection.rs:320
← previousnext →301–400 of 402, ranked by callers