Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Mange/mpris-rs
/ functions
Functions
402 in github.com/Mange/mpris-rs
⨍
Functions
402
◇
Types & classes
39
↓ 1 callers
Method
add_track_at_start
Add a URI to the start of the TrackList and optionally set it as current. Requires the player to implement the `TrackList` interface. See: [MPRIS2 s
src/player.rs:755
↓ 1 callers
Method
age
Returns the age of the data as a [`Duration`]. If the [`Progress`] has a high age it is more likely to be out of date.
src/progress.rs:407
↓ 1 callers
Method
all_player_buses
Returns all of the MPRIS DBus paths
src/find.rs:153
↓ 1 callers
Method
append
(&self, i: &mut arg::IterAppend)
src/generated/media_player_player.rs:57
↓ 1 callers
Method
as_hashmap
Returns an owned [`HashMap`] of borrowed values from this [`Metadata`]. Useful if you need a mutable hash but don't have ownership of [`Metadata`] or
src/metadata.rs:162
↓ 1 callers
Method
can_set_fullscreen
Queries the player to see if it can be asked to entrer fullscreen. This property was added in MPRIS 2.2, and not all players will implement it. This
src/player.rs:943
↓ 1 callers
Method
can_set_playback_rate
Queries the player to see if it currently supports/allows changing playback rate.
src/player.rs:1018
↓ 1 callers
Method
checked_can_edit_tracks
Query the player to see if it allows changes to its TrackList. Will return [`false`] if [`Player`] isn't supporting the `TrackList` interface. See [
src/player.rs:464
↓ 1 callers
Method
checked_get_loop_status
Gets the "LoopStatus" setting, if the player indicates that it supports it. Returns [`Some`] containing the current value of the loop setting. If the
src/player.rs:1176
↓ 1 callers
Method
checked_get_playback_rate
Gets the "Rate" setting, if the player indicates that it supports it. Returns [`Some`] containing the current value of the rate setting. If the setti
src/player.rs:313
↓ 1 callers
Method
checked_get_position
Gets the "Position" setting, if the player indicates that it supports it. Return [`Some`] containing the current value of the position. If the settin
src/player.rs:229
↓ 1 callers
Method
checked_get_shuffle
Gets the "Shuffle" setting, if the player indicates that it supports it. Return [`Some`] containing the current value of the shuffle setting. If the
src/player.rs:1125
↓ 1 callers
Method
checked_get_volume
Gets the "Volume" setting, if the player indicates that it supports it. Returns [`Some`] containing the current value of the position. If the setting
src/player.rs:1227
↓ 1 callers
Method
checked_play_pause
Sends a `PlayPause` signal to the player, if the player indicates that it can pause. Returns a boolean to show if the signal was sent or not. See: [
src/player.rs:785
↓ 1 callers
Method
clear
Clears the entire list and cache.
src/track_list.rs:241
↓ 1 callers
Method
clear_extra_cache
(&mut self)
src/track_list.rs:380
↓ 1 callers
Function
clear_progress_bar
(screen: &mut Screen)
examples/control.rs:413
↓ 1 callers
Function
clear_screen
(screen: &mut Screen)
examples/control.rs:423
↓ 1 callers
Function
clear_to_end_of_line
()
examples/detecting_shutting_down.rs:14
↓ 1 callers
Method
complete_cache
Fill in any holes in the cache so that each track on the list has a cached [`Metadata`] entry. If all tracks already have a cache entry, then this wi
src/track_list.rs:346
↓ 1 callers
Function
cursor_beginning_of_line
()
examples/detecting_shutting_down.rs:10
↓ 1 callers
Function
cycle_loop_status
(player: &Player)
examples/control.rs:278
↓ 1 callers
Method
dbus_value
(self)
src/lib.rs:126
↓ 1 callers
Method
desktop_entry
(&self)
src/generated/media_player.rs:94
↓ 1 callers
Method
detect_loop_status_events
(&mut self, new_progress: &Progress)
src/event.rs:218
↓ 1 callers
Method
detect_metadata_events
(&mut self, new_progress: &Progress)
src/event.rs:249
↓ 1 callers
Method
detect_playback_rate_events
(&mut self, new_progress: &Progress)
src/event.rs:242
↓ 1 callers
Method
detect_playback_status_events
(&mut self, new_progress: &Progress)
src/event.rs:209
↓ 1 callers
Method
detect_shuffle_events
(&mut self, new_progress: &Progress)
src/event.rs:225
↓ 1 callers
Method
detect_volume_events
(&mut self, new_progress: &Progress)
src/event.rs:235
↓ 1 callers
Method
determine_unique_name
(&self, bus_name: S)
src/pooled_connection.rs:57
↓ 1 callers
Method
events
Returns a [`PlayerEvents`] iterator, or an [`DBusError`] if there was a problem with the D-Bus connection to the player. This iterator will block unt
src/player.rs:553
↓ 1 callers
Method
find_active_player
Finds the index of an "active" player. Follows the order mentioned in [`find_active`](Self::find_active).
src/find.rs:110
↓ 1 callers
Function
find_next_track
( current_track_id: Option<TrackID>, track_list: &TrackList, player: &Player, )
examples/control.rs:372
↓ 1 callers
Method
fullscreen
(&self)
src/generated/media_player.rs:54
↓ 1 callers
Method
get
Return the [`TrackID`] of the index. Out-of-bounds will result in [`None`].
src/track_list.rs:202
↓ 1 callers
Method
get_position
Returns the player's MPRIS `position` as a [`Duration`] since the start of the media.
src/player.rs:220
↓ 1 callers
Method
get_position_in_microseconds
Returns the player's MPRIS `position` as a count of microseconds since the start of the media.
src/player.rs:239
↓ 1 callers
Method
get_supported_mime_types
Returns the player's `SupportedMimeTypes` property. See: [MPRIS2 specification about `SupportedMimeTypes`][mime_types]. [mime_types]: https://specif
src/player.rs:191
↓ 1 callers
Method
get_supported_uri_schemes
Returns the player's `SupportedUriSchemes` property. See: [MPRIS2 specification about `SupportedUriSchemes`][schemes]. [schemes]: https://specificat
src/player.rs:202
↓ 1 callers
Method
get_valid_playback_rate_range
Gets the minimum-maximum allowed value range for playback rate. See: [`get_minimum_playback_rate`](Self::get_minimum_playback_rate) and [`get_maximum
src/player.rs:376
↓ 1 callers
Method
go_to
Go to a specific track on the [`Player`]'s [`TrackList`]. If the given [`TrackID`] is not part of the player's [`TrackList`], it will have no effect.
src/player.rs:718
↓ 1 callers
Function
goto_track
(player: &Player)
examples/tracklist_control.rs:108
↓ 1 callers
Method
has_pending_events
Returns [`true`] if the given bus name has any pending events waiting to be processed. If you want to actually act on the messages, use [`pending_eve
src/pooled_connection.rs:92
↓ 1 callers
Method
has_track_list
(&self)
src/generated/media_player.rs:78
↓ 1 callers
Function
has_tracklist_interface
Checks if the Player implements the `org.mpris.MediaPlayer2.TrackList` interface.
src/player.rs:1322
↓ 1 callers
Method
ids
Get a list of [`TrackID`]s that are part of this [`TrackList`]. The order matters.
src/track_list.rs:187
↓ 1 callers
Method
ids_without_cache
(&self)
src/track_list.rs:372
↓ 1 callers
Method
is_empty
If the tracklist is empty or not.
src/track_list.rs:197
↓ 1 callers
Method
is_enabled
(&self, player: &Player)
examples/control.rs:101
↓ 1 callers
Method
length_in_microseconds
The duration of the track, in microseconds Based on `mpris:length` > The duration of the track in microseconds.
src/metadata.rs:117
↓ 1 callers
Method
main_loop
(&mut self)
examples/control.rs:138
↓ 1 callers
Method
maximum_rate
(&self)
src/generated/media_player_player.rs:182
↓ 1 callers
Method
minimum_rate
(&self)
src/generated/media_player_player.rs:174
↓ 1 callers
Function
move_cursor_up
(n: usize)
examples/detecting_shutting_down.rs:6
↓ 1 callers
Method
name_has_owner
(&self, bus_name: S)
src/pooled_connection.rs:73
↓ 1 callers
Method
next
(&mut self)
src/find.rs:218
↓ 1 callers
Method
next_action
(&mut self)
examples/control.rs:159
↓ 1 callers
Method
pause
Send a `Pause` signal to the player. See: [MPRIS2 specification about `Pause`][pause]. [pause]: https://specifications.freedesktop.org/mpris-spec/la
src/player.rs:595
↓ 1 callers
Method
perform_action
(&mut self, action: Action)
examples/control.rs:167
↓ 1 callers
Method
play
Send a `Play` signal to the player. See: [MPRIS2 specification about `Play`][play]. [play]: https://specifications.freedesktop.org/mpris-spec/latest
src/player.rs:586
↓ 1 callers
Function
play_pause
()
examples/play_pause.rs:17
↓ 1 callers
Function
print_artist
(metadata: &Metadata)
examples/progress_tracker.rs:29
↓ 1 callers
Function
print_capabilities_for_all_players
()
examples/capabilities.rs:25
↓ 1 callers
Function
print_capabilities_for_player
(player: Player)
examples/capabilities.rs:38
↓ 1 callers
Function
print_duration
(duration: Duration)
examples/progress_tracker.rs:10
↓ 1 callers
Function
print_instructions
(screen: &mut Screen, player: &Player)
examples/control.rs:223
↓ 1 callers
Function
print_loop_status
(progress: &Progress)
examples/progress_tracker.rs:60
↓ 1 callers
Function
print_metadata
()
examples/get_metadata.rs:18
↓ 1 callers
Function
print_playback_info
(screen: &mut Screen, progress: &Progress)
examples/control.rs:294
↓ 1 callers
Function
print_playback_status
(progress: &Progress)
examples/progress_tracker.rs:44
↓ 1 callers
Function
print_shuffle_status
(progress: &Progress)
examples/progress_tracker.rs:52
↓ 1 callers
Function
print_title
(metadata: &Metadata)
examples/progress_tracker.rs:40
↓ 1 callers
Function
print_track_list
(player: &Player)
examples/tracklist_control.rs:61
↓ 1 callers
Function
print_track_list
()
examples/show_tracklist.rs:18
↓ 1 callers
Function
print_track_list
(screen: &mut Screen, track_list: &TrackList, next_track: Option<Metadata>)
examples/control.rs:350
↓ 1 callers
Method
process_events_blocking_for
Process events in a blocking fashion until the deadline/timebox [`Duration`] runs out.
src/pooled_connection.rs:113
↓ 1 callers
Method
process_events_blocking_until_received
Blocks until player gets an event on the bus. Other player events will also be recorded, but will not cause this function to return. Note that this w
src/player.rs:1295
↓ 1 callers
Method
quit
Send a `Quit` signal to the player. > Causes the media player to stop running. > > The media player may refuse to allow clients to shut it down. In t
src/player.rs:687
↓ 1 callers
Method
raise
Send a `Raise` signal to the player. > Brings the media player's user interface to the front using any appropriate mechanism > available. > > The med
src/player.rs:656
↓ 1 callers
Method
rate
(&self)
src/generated/media_player_player.rs:134
↓ 1 callers
Method
read_events
(&mut self)
src/event.rs:132
↓ 1 callers
Method
refresh_player
(&mut self)
src/progress.rs:307
↓ 1 callers
Function
remove_track
(player: &Player)
examples/tracklist_control.rs:116
↓ 1 callers
Method
remove_track
Remove an item from the TrackList. Requires the player to implement the `TrackList` interface. See: [MPRIS2 specification about `RemoveTrack`][remov
src/player.rs:770
↓ 1 callers
Function
reset_line
()
examples/progress_tracker.rs:6
↓ 1 callers
Function
run
()
examples/tracklist_control.rs:28
↓ 1 callers
Method
set_playback_rate
Sets the player's MPRIS (playback) `rate` as a factor. 1.0 would mean normal rate, while 2.0 would mean twice the playback speed. It is not allowed
src/player.rs:334
↓ 1 callers
Method
set_position_in_microseconds
Sets the position of the current track to the given position (in microseconds). Current [`TrackID`] must be provided to avoid race conditions with th
src/player.rs:292
↓ 1 callers
Method
set_rate
(&self, value: f64)
src/generated/media_player_player.rs:247
↓ 1 callers
Method
should_exit
(&self)
examples/control.rs:125
↓ 1 callers
Method
signature
()
src/metadata/value.rs:433
↓ 1 callers
Method
supported_mime_types
(&self)
src/generated/media_player.rs:110
↓ 1 callers
Method
supported_uri_schemes
(&self)
src/generated/media_player.rs:102
↓ 1 callers
Method
supports_position
(&self)
examples/control.rs:218
↓ 1 callers
Method
tick_progress_and_refresh
(&mut self, should_refresh: bool)
examples/control.rs:185
↓ 1 callers
Function
toggle_shuffle
(player: &Player)
examples/control.rs:274
↓ 1 callers
Function
try_parse_properties_changed
(message: &Message)
src/pooled_connection.rs:371
↓ 1 callers
Function
try_parse_seeked
(message: &Message)
src/pooled_connection.rs:386
↓ 1 callers
Function
try_parse_track_added
(message: &Message)
src/pooled_connection.rs:410
← previous
next →
101–200 of 402, ranked by callers