pub enum SessionMessageType {
Show 34 variants
ForceKeepAlive,
GeneralCommand,
UserDataChanged,
Sessions,
Play,
SyncPlayCommand,
SyncPlayGroupUpdate,
Playstate,
RestartRequired,
ServerShuttingDown,
ServerRestarting,
LibraryChanged,
UserDeleted,
UserUpdated,
SeriesTimerCreated,
TimerCreated,
SeriesTimerCancelled,
TimerCancelled,
RefreshProgress,
ScheduledTaskEnded,
PackageInstallationCancelled,
PackageInstallationFailed,
PackageInstallationCompleted,
PackageInstalling,
PackageUninstalled,
ActivityLogEntry,
ScheduledTasksInfo,
ActivityLogEntryStart,
ActivityLogEntryStop,
SessionsStart,
SessionsStop,
ScheduledTasksInfoStart,
ScheduledTasksInfoStop,
KeepAlive,
}
Expand description
The different kinds of messages that are used in the WebSocket api.
JSON schema
{
"description": "The different kinds of messages that are used in the
WebSocket api.",
"type": "string",
"enum": [
"ForceKeepAlive",
"GeneralCommand",
"UserDataChanged",
"Sessions",
"Play",
"SyncPlayCommand",
"SyncPlayGroupUpdate",
"Playstate",
"RestartRequired",
"ServerShuttingDown",
"ServerRestarting",
"LibraryChanged",
"UserDeleted",
"UserUpdated",
"SeriesTimerCreated",
"TimerCreated",
"SeriesTimerCancelled",
"TimerCancelled",
"RefreshProgress",
"ScheduledTaskEnded",
"PackageInstallationCancelled",
"PackageInstallationFailed",
"PackageInstallationCompleted",
"PackageInstalling",
"PackageUninstalled",
"ActivityLogEntry",
"ScheduledTasksInfo",
"ActivityLogEntryStart",
"ActivityLogEntryStop",
"SessionsStart",
"SessionsStop",
"ScheduledTasksInfoStart",
"ScheduledTasksInfoStop",
"KeepAlive"
]
}
Variants§
ForceKeepAlive
GeneralCommand
UserDataChanged
Sessions
Play
SyncPlayCommand
SyncPlayGroupUpdate
Playstate
RestartRequired
ServerShuttingDown
ServerRestarting
LibraryChanged
UserDeleted
UserUpdated
SeriesTimerCreated
TimerCreated
SeriesTimerCancelled
TimerCancelled
RefreshProgress
ScheduledTaskEnded
PackageInstallationCancelled
PackageInstallationFailed
PackageInstallationCompleted
PackageInstalling
PackageUninstalled
ActivityLogEntry
ScheduledTasksInfo
ActivityLogEntryStart
ActivityLogEntryStop
SessionsStart
SessionsStop
ScheduledTasksInfoStart
ScheduledTasksInfoStop
KeepAlive
Trait Implementations§
Source§impl Clone for SessionMessageType
impl Clone for SessionMessageType
Source§fn clone(&self) -> SessionMessageType
fn clone(&self) -> SessionMessageType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SessionMessageType
impl Debug for SessionMessageType
Source§impl<'de> Deserialize<'de> for SessionMessageType
impl<'de> Deserialize<'de> for SessionMessageType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 From<&SessionMessageType> for SessionMessageType
impl From<&SessionMessageType> for SessionMessageType
Source§fn from(value: &SessionMessageType) -> Self
fn from(value: &SessionMessageType) -> Self
Converts to this type from the input type.
Source§impl FromStr for SessionMessageType
impl FromStr for SessionMessageType
Source§impl Hash for SessionMessageType
impl Hash for SessionMessageType
Source§impl Ord for SessionMessageType
impl Ord for SessionMessageType
Source§fn cmp(&self, other: &SessionMessageType) -> Ordering
fn cmp(&self, other: &SessionMessageType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SessionMessageType
impl PartialEq for SessionMessageType
Source§impl PartialOrd for SessionMessageType
impl PartialOrd for SessionMessageType
Source§impl Serialize for SessionMessageType
impl Serialize for SessionMessageType
Source§impl ToString for SessionMessageType
impl ToString for SessionMessageType
Source§impl TryFrom<&String> for SessionMessageType
impl TryFrom<&String> for SessionMessageType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for SessionMessageType
impl TryFrom<&str> for SessionMessageType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for SessionMessageType
impl TryFrom<String> for SessionMessageType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for SessionMessageType
impl Eq for SessionMessageType
impl StructuralPartialEq for SessionMessageType
Auto Trait Implementations§
impl Freeze for SessionMessageType
impl RefUnwindSafe for SessionMessageType
impl Send for SessionMessageType
impl Sync for SessionMessageType
impl Unpin for SessionMessageType
impl UnwindSafe for SessionMessageType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more