Skip to main content

Reply

Enum Reply 

Source
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: Vec<Marker>, 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: Vec<Marker>, }, PlaybackSeeked { epoch: u32, }, PlaybackRevision { revision: u64, }, Devices { devices: Vec<DeviceInfo>, }, PlexLink { link: Option<PlexLink>, }, PlaybackChanged { plan: PlaybackPlan, size: u64, epoch: u32, }, 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

Fields

§sequence: u64
§

ServerInfo(ServerInfo)

§

AuthMethods

Fields

§methods: Vec<AuthMethod>
§

LoggedIn

Fields

§session: SessionId
§remembered: bool

This 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: bool

The 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

§

Pong

§

DeviceSignInStarted

A device sign-in is pending. Show code (see crate::device_sign_in::display); keep request to await it.

Fields

§request: String
§code: String
§expires_in_ms: u64
§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

§

DeviceSignInRequest(DeviceSignInRequest)

The device a sign-in code belongs to.

§

Libraries

Fields

§libraries: Vec<Library>
§

ItemFilterValues

What a library can be sorted and filtered by (ItemFilterValues).

Fields

§

Items

Fields

§items: Vec<Item>
§total: u32
§unavailable: Vec<MediaId>

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

§item: Item
§children: Vec<Item>
§markers: Vec<Marker>

The item’s intro and credits, in order of start; empty for an item that has none.

§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.

§liked_children: Vec<MediaId>

An album’s tracks among children that are liked, for their hearts. Empty for any other item.

§copies: Option<Copies>

Experimental (federation): where the item is from, its title’s copies on other servers and the one that plays, as a SearchHit has them. Only to a client that named the feature.

§

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.

Fields

§item: Option<Item>
§

WhoAmI(WhoAmIReply)

§

LoggedOut

§

Sessions

Fields

§sessions: Vec<SessionInfo>
§

PlaybackPlan

Fields

§chosen: Option<ChosenTracks>

The tracks the server chose, when the request had no selection.

§

PlaybackStarted

Fields

§plan: PlaybackPlan

How the server plays it: direct, or converted.

§size: u64

The size of the file the handle reads.

§chosen: Option<ChosenTracks>

The tracks the server chose, when the request had no selection.

§epoch: u32

The encode reads name; 0 for direct play.

§markers: Vec<Marker>

The 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.

Fields

§epoch: u32
§

PlaybackRevision

Fields

§revision: u64
§

Devices

The session user’s devices, most recently seen first.

Fields

§devices: Vec<DeviceInfo>

The session user’s Plex link; None: not linked (or the server links no Plex accounts).

Fields

§

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

§size: u64
§epoch: u32
§

Manifest

An HLS playlist, as text.

Fields

§text: String
§

Subtitle

A segment of a subtitle rendition, whole (ReadSubtitleSegment).

Fields

§bytes: Vec<u8>
§

SubtitleChunk

The chunk of a subtitle file that ReadSubtitle asked for.

Fields

§bytes: Vec<u8>
§total: u64

The whole file’s length.

§version: u64

The file these bytes are of. It is another value once the file is written again or replaced, and means nothing else to a client: send it back with the next ReadSubtitle.

§

Done

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

§nonce: [u8; 32]

Used once, for expires_in_secs, by this session.

§server: [u8; 32]

This server’s endpoint id, as the tie message names it. A client signs with the id it dialled, never this one: the field says which server meant to ask.

§expires_in_secs: u64
§

PortableSignInBegun

What a portable user’s device signs to sign in (BeginPortableSignIn).

Fields

§nonce: [u8; 32]

Used once, for expires_in_secs, by this device.

§expires_in_secs: u64
§

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

§

Invites

The invites that can still be redeemed (ListInvites).

Fields

§

HttpPlaybackUrl

Experimental (http-playback): where a player with no Iroh fetches the playback (HttpPlaybackUrl).

Fields

§

HttpPlaybackRefused

Experimental (http-playback): why HttpPlaybackUrl gave no URL.

Fields

§

ServerPaired

Experimental (federation): the server paired (PairServer).

Fields

§server: PeerServer
§

LibrariesShared

Experimental (federation): the libraries shared with the paired server (ShareLibraries), as asked.

Fields

§libraries: Vec<LibraryId>
§

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.

Fields

§pin_notes: Vec<PinNote>
§

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.

Fields

§revision: u64
§

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

§

PlexImport(PlexImport)

What importing Plex playlists made, or would (ImportPlexPlaylists).

§

ShareCandidates(ShareCandidatePage)

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.

Fields

§downloads: Vec<DownloadInfo>
§gone: Vec<String>

Left out when empty.

§

OfflineWatchSynced

What became of each offline entry, in order (SyncOfflineWatch).

Fields

§

MusicDownloadChanges

What each followed thing holds (MusicDownloadChanges), and the cursor to ask with next.

Fields

§cursor: String
§

OfflinePlaysSynced

What became of each offline play and like, in order (SyncOfflinePlays).

Trait Implementations§

Source§

impl Clone for Reply

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Reply

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Reply

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Reply

Source§

impl PartialEq for Reply

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Reply

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Reply

Auto Trait Implementations§

§

impl Freeze for Reply

§

impl RefUnwindSafe for Reply

§

impl Send for Reply

§

impl Sync for Reply

§

impl Unpin for Reply

§

impl UnsafeUnpin for Reply

§

impl UnwindSafe for Reply

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.