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
↓ 1 callers
Function
try_parse_track_metadata_changed
(message: &Message)
src/pooled_connection.rs:434
↓ 1 callers
Function
try_parse_track_removed
(message: &Message)
src/pooled_connection.rs:423
↓ 1 callers
Function
try_parse_tracklist_replaced
(message: &Message)
src/pooled_connection.rs:397
↓ 1 callers
Method
underlying
(&self)
src/pooled_connection.rs:53
↓ 1 callers
Method
unique_name
Returns the player's unique D-Bus bus name (usually something like `:1.1337`).
src/player.rs:159
↓ 1 callers
Method
volume
(&self)
src/generated/media_player_player.rs:158
Method
activate_playlist
(&self, playlist_id: dbus::Path)
src/generated/media_player_playlists.rs:62
Method
active_playlist
( &self, )
src/generated/media_player_playlists.rs:101
Method
add_metadata
Adds/updates the metadata cache for a track (as identified by [`Metadata::track_id`]). The metadata will be added to the cache even if the [`TrackID`
src/track_list.rs:265
Method
add_track
( &self, uri: &str, after_track: dbus::Path, set_as_current: bool, )
src/generated/media_player_tracklist.rs:157
Method
album_artists
A list of artists of the album the track appears on. Based on `xesam:albumArtist` > The album artist(s).
src/metadata.rs:71
Method
album_name
The name of the album the track appears on. Based on `xesam:album` > The album name.
src/metadata.rs:79
Method
append
(&self, i: &mut arg::IterAppend)
src/generated/media_player_playlists.rs:41
Method
append
(&self, i: &mut arg::IterAppend)
src/generated/media_player_tracklist.rs:44
Method
art_url
An URL to album art of the current track. Based on `mpris:artUrl` > The location of an image representing the track or album. Clients should not assu
src/metadata.rs:88
Method
as_array
Returns the value as a `Some(&Vec<Value>)` if it is a `MetadataValue::Array`, or `None` otherwise.
src/metadata/value.rs:234
Method
as_bool
Returns the value as a `Some(bool)` if it is a `MetadataValue::Bool`, or `None` otherwise.
src/metadata/value.rs:202
Method
as_f64
Returns the value as a `Some(f64)` if it is a `MetadataValue::F64`, or `None` otherwise.
src/metadata/value.rs:194
Method
as_i16
Returns the value as a `Some(i16)` if it is a signed integer smaller than or equal to i16, or `None` otherwise.
src/metadata/value.rs:165
Method
as_i32
Returns the value as a `Some(i32)` if it is a signed integer smaller than or equal to i32, or `None` otherwise.
src/metadata/value.rs:174
Method
as_i64
Returns the value as a `Some(i64)` if it is a signed integer smaller than or equal to i64, or `None` otherwise.
src/metadata/value.rs:184
Method
as_map
Returns the value as a `Some(&HashMap<String, Value>)` if it is a `MetadataValue::Map`, or `None` otherwise.
src/metadata/value.rs:226
Method
as_micros
(&self)
src/extensions.rs:21
Method
as_millis
(&self)
src/extensions.rs:17
Method
as_str
Returns the value as a `Some(&str)` if it is a `MetadataValue::String`, or `None` otherwise.
src/metadata/value.rs:210
Method
as_str_array
Returns the value as a `Some(Vec<&str>)` if it is a `MetadataValue::Array`. Any elements that are not `MetadataValue::String` values will be ignored.
src/metadata/value.rs:114
Method
as_string
Returns the value as a `Some(&String)` if it is a `MetadataValue::String`, or `None` otherwise.
src/metadata/value.rs:218
Method
as_u16
Returns the value as a `Some(u16)` if it is an unsigned int smaller than or equal to u16, or `None` otherwise.
src/metadata/value.rs:132
Method
as_u32
Returns the value as a `Some(u32)` if it is an unsigned int smaller than or equal to u32, or `None` otherwise.
src/metadata/value.rs:142
Method
as_u64
Returns the value as a `Some(u64)` if it is an unsigned int smaller than or equal to u64, or `None` otherwise.
src/metadata/value.rs:153
Method
as_u8
Returns the value as a `Some(u8)` if it is a `MetadataValue::U8`, or `None` otherwise.
src/metadata/value.rs:123
Method
auto_rating
Based on `xesam:autoRating` > An automatically-generated rating, based on things such as how often it has been played. > This should be in the range 0
src/metadata.rs:103
Method
bus_name_player_name_part
(&self)
src/player.rs:140
Method
bus_name_trimmed
Returns the player name part of the player's D-Bus bus name with the MPRIS2 prefix trimmed. Examples: - `org.mpris.MediaPlayer2.io.github.celluloid_p
src/player.rs:154
Method
can_control
(&self)
src/generated/media_player_player.rs:230
Method
can_edit_tracks
(&self)
src/generated/media_player_tracklist.rs:190
Method
can_go_next
(&self)
src/generated/media_player_player.rs:190
Method
can_go_previous
(&self)
src/generated/media_player_player.rs:198
Method
can_pause
(&self)
src/generated/media_player_player.rs:214
Method
can_play
(&self)
src/generated/media_player_player.rs:206
Method
can_quit
(&self)
src/generated/media_player.rs:46
Method
can_raise
(&self)
src/generated/media_player.rs:70
Method
can_seek
(&self)
src/generated/media_player_player.rs:222
Method
can_set_fullscreen
(&self)
src/generated/media_player.rs:62
Method
checked_next
Sends a `Next` signal to the player, if the player indicates that it can go to the next media. Returns a boolean to show if the signal was sent or no
src/player.rs:846
Method
checked_pause
Sends a `Pause` 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: [MPRI
src/player.rs:815
Method
checked_play
Sends a `Play` signal to the player, if the player indicates that it can play. Returns a boolean to show if the signal was sent or not. See: [MPRIS2
src/player.rs:800
Method
checked_previous
Sends a `Previous` signal to the player, if the player indicates that it can go to a previous media. Returns a boolean to show if the signal was sent
src/player.rs:862
Method
checked_quit
Send a `Quit` signal to the player, if it supports it. See: [`can_quit`](Self::can_quit) and [`quit`](Self::quit) methods.
src/player.rs:694
Method
checked_raise
Send a `Raise` signal to the player, if it supports it. See: [`can_raise`](Self::can_raise) and [`raise`](Self::raise) methods.
src/player.rs:663
Method
checked_seek
Sends a `Seek` signal to the player, if the player indicates that it can seek. Returns a boolean to show if the signal was sent or not. See: [MPRIS2
src/player.rs:877
Method
checked_seek_backwards
Seeks the player backwards, if the player indicates that it can seek. Returns a boolean to show if the signal was sent or not. See: [MPRIS2 specific
src/player.rs:907
Method
checked_seek_forwards
Seeks the player forwards, if the player indicates that it can seek. Returns a boolean to show if the signal was sent or not. See: [MPRIS2 specifica
src/player.rs:892
Method
checked_set_loop_status
Set the loop status of the player, if the player indicates that supports it and that it can be controlled. Returns a boolean to show if the signal wa
src/player.rs:1203
Method
checked_set_playback_rate
Set the playback rate of the player, if the player indicates that supports it and that it can be controlled. Returns a boolean to show if the signal
src/player.rs:346
Method
checked_set_position
Set the "Position" setting of the player, if the player indicates that it supports the "Position" setting and can be controlled. Returns a boolean to
src/player.rs:269
Method
checked_set_shuffle
Set the "Shuffle" setting of the player, if the player indicates that it supports the "Shuffle" setting and can be controlled. Returns a [`bool`] to
src/player.rs:1152
Method
checked_set_volume
Set the "Volume" setting of the player, if the player indicates that it supports the "Volume" setting and can be controlled. Returns a boolean to sho
src/player.rs:1257
Method
checked_stop
Sends a `Stop` signal to the player, if the player indicates that it can stop. Returns a boolean to show if the signal was sent or not. See: [MPRIS2
src/player.rs:830
Method
created_at
The instant where this [`Progress`] was recorded. See: [`age`](Self::age).
src/progress.rs:400
Method
dbus_timeout_ms
Returns the current D-Bus communication timeout (in milliseconds). When querying D-Bus the call should not block longer than this, and will instead f
src/player.rs:95
Method
description
(&self)
examples/control.rs:85
Method
disc_number
Based on `xesam:discNumber` > The disc number on the album that this track is from.
src/metadata.rs:109
Method
eq
(&self, other: &TrackList)
src/track_list.rs:405
Method
find_by_name
Find a [`Player`] by it's MPRIS [`Identity`][identity]. Returns [`NoPlayerFound`](FindingError::NoPlayerFound) if no direct match found. [identity]:
src/find.rs:142
Method
find_first
Return the first found [`Player`] regardless of state.
src/find.rs:86
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/track_list.rs:97
Method
for_connection
Create a new [`PlayerFinder`] with the given connection. Use [`new`](Self::new) if you want a new default connection rather than manually managing th
src/find.rs:57
Method
for_pooled_connection
( pooled_connection: Rc<PooledConnection>, bus_name: String, timeout_ms: i32, )
src/player.rs:53
Method
force_refresh
Force a refresh right now. This will ignore the interval and perform a refresh anyway. The new [`Progress`] will be saved, and the [`TrackList`] will
src/progress.rs:299
Function
format_elapsed
(duration: Duration)
examples/events.rs:31
Method
from
(error: InvalidPlaybackStatus)
src/lib.rs:159
Method
from
(path: dbus::Path<'a>)
src/track_list.rs:73
Method
from
(metadata: Metadata)
src/metadata.rs:195
Method
from
(connection: Connection)
src/pooled_connection.rs:247
Method
from
(error: dbus::Error)
src/find.rs:29
Method
from
(string: &'a str)
src/metadata/value.rs:426
Function
from_hashmap_artist_string
()
src/metadata.rs:253
Function
from_hashmap_artists_list
()
src/metadata.rs:264
Method
from_iter
(iter: I)
src/track_list.rs:172
Method
from_key
(key: termion::event::Key)
examples/control.rs:49
Method
from_micros_ext
(micros: u64)
src/extensions.rs:11
Method
from_player
(player: &Player)
src/progress.rs:324
Method
from_str
(string: &str)
src/lib.rs:95
Method
get
(i: &mut dbus::arg::Iter<'_>)
src/metadata/value.rs:439
Method
get_desktop_entry
Returns the player's `DesktopEntry` property, if supported. See: [MPRIS2 specification about `DesktopEntry`][desktop_entry]. [desktop_entry]: https:
src/player.rs:182
Method
get_fullscreen
Query the player for current fullscreen state. This property was added in MPRIS 2.2, and not all players will implement it. This method will try to d
src/player.rs:1083
Method
get_playlists
( &self, index: u32, max_count: u32, order: &str, reverse_order: bool,
src/generated/media_player_playlists.rs:70
Method
get_track_metadata
Query the player for metadata for a single [`TrackID`]. Note that [`get_tracks_metadata`](Self::get_tracks_metadata) with a list is more effective if
src/player.rs:514
Method
get_tracks_metadata
( &self, track_ids: Vec<dbus::Path>, )
src/generated/media_player_tracklist.rs:145
Method
go_to
(&self, track_id: dbus::Path)
src/generated/media_player_tracklist.rs:178
Method
identity
(&self)
src/generated/media_player.rs:86
Method
initial_position
Returns the position that the current track was at when the [`Progress`] was created. This is the number that was returned for the [`Position`][posit
src/progress.rs:393
Method
into_array
Consumes `self` and returns the inner value as a `Some(Vec<Value>)` if it is a `MetadataValue::Array`, or `None` otherwise.
src/metadata/value.rs:350
Method
into_bool
Consumes `self` and returns the inner value as a `Some(bool)` if it is a `MetadataValue::Bool`, or `None` otherwise.
src/metadata/value.rs:323
Method
into_f64
Consumes `self` and returns the inner value as a `Some(f64)` if it is a `MetadataValue::F64`, or `None` otherwise.
src/metadata/value.rs:314
Method
into_i16
Consumes `self` and returns the inner value as a `Some(i16)` if it is a signed integer smaller than or equal to i16, or `None` otherwise.
src/metadata/value.rs:284
Method
into_i32
Consumes `self` and returns the inner value as a `Some(i32)` if it is a signed integer smaller than or equal to i32, or `None` otherwise.
src/metadata/value.rs:293
Method
into_i64
Consumes `self` and returns the inner value as a `Some(i64)` if it is a signed integer smaller than or equal to i64, or `None` otherwise.
src/metadata/value.rs:303
Method
into_map
Consumes `self` and returns the inner value as a `Some(HashMap<String, Value>)` if it is a `MetadataValue::Map`, or `None` otherwise.
src/metadata/value.rs:341
← previous
next →
201–300 of 402, ranked by callers