pub enum ServerGeneration {
V10_11,
V12Plus,
Unknown,
}Expand description
How this build classified the server it is talking to.
There are exactly two live cases, and the gap between them is not a typo:
Jellyfin 11.0 does not exist and never did. With 12.0 the project dropped
the leading 10 from its scheme, so what would have been 10.12.0 shipped as
12.0 and the server reports Version: "12.0.0". 12.0 is therefore one
release-branch step from 10.11, not two, and major == 11 will never occur.
Source: https://jellyfin.org/posts/jellyfin-release-12.0, which explicitly flags version-string parsers as the thing to check before upgrading.
Variants§
V10_11
The 10.x line — major == 10. What this client was built against.
V12Plus
The post-rename line — major >= 12.
Unknown
The server did not report a parseable version. Treated as the older generation, which is the conservative choice: its flags are the ones that also work on 12.x.
Trait Implementations§
Source§impl Clone for ServerGeneration
impl Clone for ServerGeneration
Source§fn clone(&self) -> ServerGeneration
fn clone(&self) -> ServerGeneration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerGeneration
impl Debug for ServerGeneration
Source§impl PartialEq for ServerGeneration
impl PartialEq for ServerGeneration
Source§fn eq(&self, other: &ServerGeneration) -> bool
fn eq(&self, other: &ServerGeneration) -> bool
self and other values to be equal, and is used by ==.impl Copy for ServerGeneration
impl Eq for ServerGeneration
impl StructuralPartialEq for ServerGeneration
Auto Trait Implementations§
impl Freeze for ServerGeneration
impl RefUnwindSafe for ServerGeneration
impl Send for ServerGeneration
impl Sync for ServerGeneration
impl Unpin for ServerGeneration
impl UnsafeUnpin for ServerGeneration
impl UnwindSafe for ServerGeneration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.