Trait mpvipc::ipc::TypeHandler

source ·
pub trait TypeHandler: Sized {
    // Required methods
    fn get_value(value: Value) -> Result<Self, Error>;
    fn as_string(&self) -> String;
}

Required Methods§

source

fn get_value(value: Value) -> Result<Self, Error>

source

fn as_string(&self) -> String

Implementations on Foreign Types§

source§

impl TypeHandler for HashMap<String, MpvDataType>

source§

impl TypeHandler for usize

source§

impl TypeHandler for String

source§

impl TypeHandler for bool

source§

impl TypeHandler for Vec<PlaylistEntry>

source§

impl TypeHandler for f64

Implementors§