mpvipc_async

Trait SetPropertyTypeHandler

source
pub trait SetPropertyTypeHandler<T> {
    // Required method
    async fn set_property_generic(
        instance: &Mpv,
        property: &str,
        value: T,
    ) -> Result<(), MpvError>;
}
Expand description

A trait for specifying how to serialize and set a value through Mpv::set_property.

Required Methods§

source

async fn set_property_generic( instance: &Mpv, property: &str, value: T, ) -> Result<(), MpvError>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> SetPropertyTypeHandler<T> for T
where T: Serialize,