pub trait MpvRecv: MpvRecvInternal { }
Expand description
Defines a type which may be received from mpv.
Any data received from mpv is read-only. Thus, all types implementing this trait must own their own storage (i.e., cannot be references).
Trait implementations are expected to copy any data mpv provides into their own structures as necessary.
For complex types (i.e., Node
, or which may contain NodeArray
/NodeMap
,
which themselves contain more nodes), this can be comparatively expensive.
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.