Enum SongType
#[repr(i32)]pub enum SongType {
Local = 0,
Url = 1,
Spotify = 2,
Dash = 3,
Hls = 4,
}Variants§
Implementations§
§impl SongType
impl SongType
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<SongType>
pub fn from_str_name(value: &str) -> Option<SongType>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Ord for SongType
impl Ord for SongType
§impl PartialOrd for SongType
impl PartialOrd for SongType
§impl TryFrom<i32> for SongType
impl TryFrom<i32> for SongType
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
impl Copy for SongType
impl Eq for SongType
impl StructuralPartialEq for SongType
Auto Trait Implementations§
impl Freeze for SongType
impl RefUnwindSafe for SongType
impl Send for SongType
impl Sync for SongType
impl Unpin for SongType
impl UnwindSafe for SongType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)