pub enum Node {
None,
String(String),
Flag(bool),
Int64(i64),
Double(f64),
Array(NodeArray),
Map(NodeMap),
ByteArray(ByteArray),
}Expand description
Generic data storage for various mpv argument types and responses.
Variants§
None
The Node is empty. See Format::NONE.
String(String)
The Node contains a string. See Format::STRING.
Flag(bool)
The Node contains a boolean flag. See Format::NONE.
Int64(i64)
The Node contains an integer. See Format::INT64.
Double(f64)
The Node contains a double. See Format::DOUBLE.
Array(NodeArray)
The Node contains an array of Nodes. See Format::NODE_ARRAY.
Map(NodeMap)
The Node contains a map of String keys and Node values. See Format::NODE_MAP.
ByteArray(ByteArray)
The Node contains a raw, untyped byte array. See Format::BYTE_ARRAY.
Trait Implementations§
Source§impl MpvFormat for Node
impl MpvFormat for Node
Source§const MPV_FORMAT: Format = Format::NODE
const MPV_FORMAT: Format = Format::NODE
Defines the
mpv_format used with mpv when transferring and requesting data.impl MpvRecv for Node
impl MpvSend for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more