Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mange/mpris-rs
/ functions
Functions
402 in github.com/Mange/mpris-rs
⨍
Functions
402
◇
Types & classes
39
Method
into_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
Method
into_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
Method
into_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
Method
into_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
Method
into_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
Method
is_array
Returns true if `self` is an Array
src/metadata/value.rs:410
Method
is_bool
Returns true if `self` is a Bool
src/metadata/value.rs:405
Method
is_f64
Returns true if `self` is an F64
src/metadata/value.rs:400
Method
is_i16
Returns true if `self` is an I16
src/metadata/value.rs:365
Method
is_i32
Returns true if `self` is an I32
src/metadata/value.rs:370
Method
is_i64
Returns true if `self` is an I64
src/metadata/value.rs:375
Method
is_map
Returns true if `self` is a Map
src/metadata/value.rs:415
Method
is_string
Returns true if `self` is a String
src/metadata/value.rs:360
Method
is_u16
Returns true if `self` is a U16
src/metadata/value.rs:385
Method
is_u32
Returns true if `self` is a U32
src/metadata/value.rs:390
Method
is_u64
Returns true if `self` is a U64
src/metadata/value.rs:395
Method
is_u8
Returns true if `self` is a U8
src/metadata/value.rs:380
Method
is_unsupported
Returns true if `self` is a Unsupported
src/metadata/value.rs:420
Function
it_builds_values_hash
()
src/metadata.rs:223
Function
it_calculates_whole_micros_from_durations
()
src/extensions.rs:44
Function
it_calculates_whole_millis_from_durations
()
src/extensions.rs:38
Function
it_constructs_durations_from_micros
()
src/extensions.rs:31
Function
it_creates_new_metadata
()
src/metadata.rs:211
Function
it_does_not_progress_when_paused
()
src/progress.rs:451
Function
it_has_iterators
()
src/metadata.rs:235
Function
it_inserts_after_given_id
()
src/track_list.rs:448
Function
it_inserts_at_end_on_empty
()
src/track_list.rs:504
Function
it_inserts_at_end_on_missing_id
()
src/track_list.rs:476
Function
it_progresses_position_when_playing_at_microseconds
()
src/progress.rs:434
Function
it_supports_arrays_of_strings
()
src/metadata/value.rs:604
Function
it_supports_arrays_of_variants
()
src/metadata/value.rs:588
Function
it_supports_blank_metadata
()
src/metadata.rs:217
Function
it_supports_booleans
()
src/metadata/value.rs:579
Function
it_supports_floats
()
src/metadata/value.rs:570
Function
it_supports_maps_of_variants
()
src/metadata/value.rs:617
Function
it_supports_object_paths_as_strings
()
src/metadata/value.rs:531
Function
it_supports_signed_integers
()
src/metadata/value.rs:556
Function
it_supports_strings
()
src/metadata/value.rs:522
Function
it_supports_unsigned_integers
()
src/metadata/value.rs:540
Method
key_name
(&self)
examples/control.rs:69
Method
kind
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
Method
length
Returns the length of the current track as a [`Duration`].
src/progress.rs:367
Method
loop_status
(&self)
src/generated/media_player_player.rs:126
Function
main
()
examples/events.rs:4
Function
main
()
examples/capabilities.rs:11
Function
main
()
examples/play_pause.rs:3
Function
main
()
examples/detecting_shutting_down.rs:18
Function
main
()
examples/tracklist_control.rs:4
Function
main
()
examples/get_metadata.rs:4
Function
main
()
examples/show_tracklist.rs:4
Function
main
()
examples/control.rs:445
Function
main
()
examples/progress_tracker.rs:68
Method
metadata
(&self)
src/generated/media_player_player.rs:150
Method
new
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
Method
new
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
Method
new
(connection: Connection)
src/pooled_connection.rs:24
Method
new
(player: &Player)
src/event.rs:117
Method
new
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
Method
new
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
Method
new
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
Method
next
(&mut self)
src/track_list.rs:413
Method
next
(&mut self)
src/event.rs:274
Method
next
(&self)
src/generated/media_player_player.rs:78
Method
no_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
Method
open_uri
(&self, uri: &str)
src/generated/media_player_player.rs:114
Method
orderings
(&self)
src/generated/media_player_playlists.rs:93
Method
pause
(&self)
src/generated/media_player_player.rs:86
Method
pending_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
Method
play
(&self)
src/generated/media_player_player.rs:98
Method
play_pause
(&self)
src/generated/media_player_player.rs:90
Method
playback_status
(&self)
src/generated/media_player_player.rs:118
Method
player_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
Method
playlist_count
(&self)
src/generated/media_player_playlists.rs:85
Method
position
(&self)
src/generated/media_player_player.rs:166
Method
previous
(&self)
src/generated/media_player_player.rs:82
Method
process_events_blocking_until_received
Process events in a blocking fashion until any new event is found.
src/pooled_connection.rs:139
Method
quit
(&self)
src/generated/media_player.rs:42
Method
raise
(&self)
src/generated/media_player.rs:38
Method
read
(i: &mut arg::Iter)
src/generated/media_player_playlists.rs:47
Method
read
(i: &mut arg::Iter)
src/generated/media_player_tracklist.rs:51
Method
reload_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
Method
remove_track
(&self, track_id: dbus::Path)
src/generated/media_player_tracklist.rs:170
Method
seek
(&self, offset: i64)
src/generated/media_player_player.rs:102
Method
set_dbus_timeout_ms
Change the D-Bus communication timeout.
src/player.rs:100
Method
set_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
Method
set_fullscreen
(&self, value: bool)
src/generated/media_player.rs:118
Method
set_loop_status
(&self, value: String)
src/generated/media_player_player.rs:238
Method
set_player_timeout_ms
Set the timeout value that all [`Player`]s created through this finder will inherit
src/find.rs:72
Method
set_position
(&self, track_id: dbus::Path, position: i64)
src/generated/media_player_player.rs:106
Method
set_shuffle
(&self, value: bool)
src/generated/media_player_player.rs:256
Method
set_volume
(&self, value: f64)
src/generated/media_player_player.rs:265
Method
set_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
Method
shuffle
(&self)
src/generated/media_player_player.rs:142
Method
size_hint
(&self)
src/find.rs:227
Method
stop
(&self)
src/generated/media_player_player.rs:94
Method
string_for_display
(&self)
examples/capabilities.rs:101
Method
track_list
Current tracklist of the player. Will be kept up to date.
src/event.rs:128
Method
track_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
Method
tracks
(&self)
src/generated/media_player_tracklist.rs:182
Method
try_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
← previous
next →
301–400 of 402, ranked by callers