pub enum Reply {
Show 71 variants
PlaybackProgressSequence {
sequence: u64,
},
ServerInfo(ServerInfo),
AuthMethods {
methods: Vec<AuthMethod>,
},
LoggedIn {
session: SessionId,
remembered: bool,
password_change_required: bool,
},
TrustedProfiles {
profiles: Vec<TrustedProfile>,
},
Pong,
DeviceSignInStarted {
request: String,
code: String,
expires_in_ms: u64,
web_url: Option<String>,
},
DeviceSignInPending,
InviteLookup {
outcome: InviteLookupOutcome,
},
DeviceSignInRequest(DeviceSignInRequest),
Libraries {
libraries: Vec<Library>,
},
ItemFilterValues {
values: ItemFilterValues,
},
Items {
items: Vec<Item>,
total: u32,
unavailable: Vec<MediaId>,
},
Item {
item: Item,
children: Vec<Item>,
markers: Markers,
playlists: Vec<PlaylistRef>,
liked: Option<Liked>,
liked_children: Vec<MediaId>,
copies: Option<Copies>,
},
Search(SearchResults),
SearchHits(SearchResults<SearchHit>),
Tracks(MediaTracks),
NextEpisode {
item: Option<Item>,
},
WhoAmI(WhoAmIReply),
LoggedOut,
Sessions {
sessions: Vec<SessionInfo>,
},
PlaybackPlan {
plan: PlaybackPlan,
chosen: Option<ChosenTracks>,
},
PlaybackStarted {
handle: PlaybackHandle,
plan: PlaybackPlan,
size: u64,
chosen: Option<ChosenTracks>,
epoch: u32,
markers: Markers,
duration: Option<Duration>,
wan: Option<bool>,
},
PlaybackSeeked {
epoch: u32,
},
PlaybackRevision {
revision: u64,
},
Devices {
devices: Vec<DeviceInfo>,
},
PlexLink {
link: Option<PlexLink>,
},
PlaybackChanged {
plan: PlaybackPlan,
size: u64,
epoch: u32,
wan: Option<bool>,
},
Manifest {
text: String,
},
Subtitle {
format: SubtitleFormat,
bytes: Vec<u8>,
},
SubtitleChunk {
format: SubtitleFormat,
bytes: Vec<u8>,
total: u64,
version: u64,
},
Done,
Confirmed,
Home(HomeScreen),
TrackPreferences(TrackPreferencesInfo),
Previews(Previews),
PasskeyRegistrationBegun(PasskeyRegistrationBegun),
PasskeySignInBegun(PasskeySignInBegun),
Passkeys {
passkeys: Vec<PasskeyInfo>,
},
TieChallenge {
nonce: [u8; 32],
server: [u8; 32],
expires_in_secs: u64,
},
PortableSignInBegun {
nonce: [u8; 32],
expires_in_secs: u64,
},
InviteCreated(InviteCreated),
IdentityRecord(IdentityRecord),
PairingOffered(PairingOffer),
PairingAnswered {
answer: Option<PairingAnswer>,
},
Invites {
invites: Vec<InviteSummary>,
},
HttpPlaybackUrl {
url: String,
},
HttpPlaybackRefused {
reason: HttpPlaybackRefusal,
},
ServerPaired {
server: PeerServer,
},
LibrariesShared {
libraries: Vec<LibraryId>,
},
PlayTokenRedeemed(PlayTokenRedeemed),
RemoteHints(RemoteHints),
RemoteGranted(RemoteGranted),
Playlists {
playlists: Vec<PlaylistSummary>,
pin_notes: Vec<PinNote>,
},
Playlist(PlaylistPage),
PlaylistInfo(PlaylistSummary),
SubtitleTiming(SubtitleTiming),
SubtitleResults(SubtitleSearch),
SubtitleDownloaded(SubtitleDownloaded),
PlaylistEdited {
revision: u64,
added: Option<Vec<EntryId>>,
},
PlaylistItem(PlaylistNext),
PlaylistFinished,
PlaylistUpcoming {
entries: Vec<PlaylistEntry>,
},
PlexImport(PlexImport),
ShareCandidates(ShareCandidatePage),
DownloadOptions(DownloadOptionsInfo),
Download(DownloadInfo),
Downloads {
downloads: Vec<DownloadInfo>,
gone: Vec<String>,
},
OfflineWatchSynced {
outcomes: Vec<OfflineWatchOutcome>,
},
MusicDownloadChanges {
changes: Vec<FollowedChange>,
cursor: String,
},
OfflinePlaysSynced {
plays: Vec<OfflineWatchOutcome>,
liked: Vec<OfflineWatchOutcome>,
},
}Variants§
PlaybackProgressSequence
ServerInfo(ServerInfo)
AuthMethods
Fields
methods: Vec<AuthMethod>LoggedIn
Fields
remembered: boolThis device is trusted for the session’s user after it: the sign-in asked to be remembered and it was (by the approver too, for a device sign-in), or the device already was.
password_change_required: boolThe password was a one-time one an admin reset to: show “Choose
a new password” and send ChangePassword (its current password
is the one-time one). Until then the session gets
PasswordChangeRequired for anything else but Logout and
WhoAmI, and the device is not trusted.
TrustedProfiles
The users this device is trusted for (TrustedProfiles), by
username.
Fields
profiles: Vec<TrustedProfile>Pong
DeviceSignInStarted
A device sign-in is pending. Show code (see
crate::device_sign_in::display); keep request to await it.
Fields
web_url: Option<String>Where a browser approves it
(crate::device_sign_in::web_link), for a QR code a phone’s
camera opens; None if the server’s web UI has no public URL.
DeviceSignInPending
Not approved yet: AwaitDeviceSignIn again.
InviteLookup
What an invite’s code is (LookupInvite).
Fields
outcome: InviteLookupOutcomeDeviceSignInRequest(DeviceSignInRequest)
The device a sign-in code belongs to.
Libraries
ItemFilterValues
What a library can be sorted and filtered by (ItemFilterValues).
Fields
values: ItemFilterValuesItems
Fields
Experimental (federation): the items listed that are
no longer available, their paired server unpaired or their
library no longer shared (RecentlyPlayed): shown as such, and
not played. Only to a client that named the feature; left out
when empty, as experimental fields are.
Item
Fields
playlists: Vec<PlaylistRef>The playlists the user sees that hold it: a movie, episode or track itself; any of a season’s or a show’s episodes; any of an album’s or an artist’s tracks. Empty when none does.
liked: Option<Liked>Its heart: a track’s all or none; an album’s
all, some or none by the tracks it has now. None for
any other item.
Search(SearchResults)
SearchHits(SearchResults<SearchHit>)
Experimental (federation): Search’s answer to a client
that named the feature, each item a SearchHit. Counts are
approximate: a title on several servers is counted once only among
what is shown.
Tracks(MediaTracks)
NextEpisode
What NextEpisode and ShowNext found: None when there is
nothing to play.
WhoAmI(WhoAmIReply)
LoggedOut
Sessions
Fields
sessions: Vec<SessionInfo>PlaybackPlan
Fields
plan: PlaybackPlanchosen: Option<ChosenTracks>The tracks the server chose, when the request had no selection.
PlaybackStarted
Fields
handle: PlaybackHandleplan: PlaybackPlanHow the server plays it: direct, or converted.
chosen: Option<ChosenTracks>The tracks the server chose, when the request had no selection.
markers: MarkersThe item’s intro and credits, as in Item, so a player needs
no second request for them. Their times are the item’s own,
wherever the playback starts.
PlaybackSeeked
A seek restarted the encode: reads name this epoch from offset 0.
PlaybackRevision
Devices
The session user’s devices, most recently seen first.
Fields
devices: Vec<DeviceInfo>PlexLink
The session user’s Plex link; None: not linked (or the server
links no Plex accounts).
PlaybackChanged
The playback’s new plan after ChangeSubtitle or ChangeQuality:
read epoch (0 for direct play), whose size is size (0 while a
conversion writes it).
Fields
plan: PlaybackPlanManifest
An HLS playlist, as text.
Subtitle
A segment of a subtitle rendition, whole (ReadSubtitleSegment).
SubtitleChunk
The chunk of a subtitle file that ReadSubtitle asked for.
Fields
format: SubtitleFormatDone
The request was carried out; there is nothing to return.
Confirmed
The session user confirmed it is them (ConfirmPassword,
FinishConfirmPasskey): this session counts as signed in now.
Home(HomeScreen)
TrackPreferences(TrackPreferencesInfo)
Previews(Previews)
An item’s frame previews (GetPreviews).
PasskeyRegistrationBegun(PasskeyRegistrationBegun)
What the platform makes an app passkey with, but the challenge:
the nonce it is made from (BeginPasskeyRegistration).
PasskeySignInBegun(PasskeySignInBegun)
What the platform signs in with an app passkey with, but the
challenge: the nonce it is made from (BeginPasskeySignIn,
BeginConfirmPasskey).
Passkeys
The session user’s passkeys (ListPasskeys).
Fields
passkeys: Vec<PasskeyInfo>TieChallenge
What a portable identity signs to tie the session user’s account
to it (TieBegin).
Fields
PortableSignInBegun
What a portable user’s device signs to sign in
(BeginPortableSignIn).
InviteCreated(InviteCreated)
A new invite, with its code (CreateInvite).
IdentityRecord(IdentityRecord)
What the server keeps of a portable identity (IdentityRecord).
PairingOffered(PairingOffer)
The pairing request held under a code (FetchPairing).
PairingAnswered
The answer to a device’s pairing request, or None while none
came yet (CollectPairing).
Fields
answer: Option<PairingAnswer>Invites
The invites that can still be redeemed (ListInvites).
Fields
invites: Vec<InviteSummary>HttpPlaybackUrl
Experimental (http-playback): where a player with no Iroh
fetches the playback (HttpPlaybackUrl).
HttpPlaybackRefused
Experimental (http-playback): why HttpPlaybackUrl gave
no URL.
Fields
reason: HttpPlaybackRefusalServerPaired
Experimental (federation): the server paired
(PairServer).
Fields
server: PeerServerExperimental (federation): the libraries shared with the
paired server (ShareLibraries), as asked.
PlayTokenRedeemed(PlayTokenRedeemed)
Experimental (federation): the session a play token
opened (RedeemPlayToken).
RemoteHints(RemoteHints)
Experimental (federation): where a paired server is
(RemoteHints).
RemoteGranted(RemoteGranted)
Experimental (federation): a paired server’s play token
for this device (RemoteGrant).
Playlists
The playlists the user sees (ListPlaylists), oldest first,
and the notes of pinned ones that left their Pinned.
Playlist(PlaylistPage)
One playlist and a page of its entries (GetPlaylist).
PlaylistInfo(PlaylistSummary)
A playlist as it is now (CreatePlaylist, UpdatePlaylist).
SubtitleTiming(SubtitleTiming)
A subtitle track’s timing after SyncSubtitle,
UseOriginalSubtitleTiming or SetSubtitleOffset.
SubtitleResults(SubtitleSearch)
What SearchSubtitles found.
SubtitleDownloaded(SubtitleDownloaded)
The track DownloadSubtitle added.
PlaylistEdited
The playlist’s revision after EditPlaylist, and the entries its
adds made, in the edits’ order (a show’s add makes one an
episode). None only from a server older than the field, which
leaves it out.
PlaylistItem(PlaylistNext)
The entry to play now (PlayPlaylist, NextInPlaylist).
PlaylistFinished
Nothing is left to play: the end, with repeat off, or no entry can be played. The user’s place is cleared.
PlaylistUpcoming
What plays next in a playlist (UpcomingInPlaylist), in turn.
Fields
entries: Vec<PlaylistEntry>PlexImport(PlexImport)
What importing Plex playlists made, or would (ImportPlexPlaylists).
Whom a playlist can be shared with (ListShareCandidates).
DownloadOptions(DownloadOptionsInfo)
What the device may download of an item (DownloadOptions).
Download(DownloadInfo)
A download prepared (PrepareDownload).
Downloads
Downloads, in the order asked (DownloadStatus): each the user
has, and the ids asked for that they have not. A device treats a
gone download as cancelled: preparing it again brings it back.
OfflineWatchSynced
What became of each offline entry, in order (SyncOfflineWatch).
Fields
outcomes: Vec<OfflineWatchOutcome>MusicDownloadChanges
What each followed thing holds (MusicDownloadChanges), and the
cursor to ask with next.
OfflinePlaysSynced
What became of each offline play and like, in order
(SyncOfflinePlays).