PlatformVersionCurrentVersion

Trait PlatformVersionCurrentVersion 

Source
pub trait PlatformVersionCurrentVersion {
    // Required methods
    fn set_current(platform_version: &'static PlatformVersion);
    fn get_current<'a>() -> Result<&'a Self, ProtocolError>;
    fn get_maybe_current<'a>() -> Option<&'a Self>;
    fn get_version_or_current_or_latest<'a>(
        version: Option<u32>,
    ) -> Result<&'a Self, ProtocolError>;
}

Required Methods§

Source

fn set_current(platform_version: &'static PlatformVersion)

Source

fn get_current<'a>() -> Result<&'a Self, ProtocolError>

Source

fn get_maybe_current<'a>() -> Option<&'a Self>

Source

fn get_version_or_current_or_latest<'a>( version: Option<u32>, ) -> Result<&'a Self, ProtocolError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§