pub enum CmdResponse {
NoData,
QueryCapability(Vec<FormatDesc>),
ResourceQueue {
timestamp: u64,
flags: u32,
size: u32,
},
GetParams {
queue_type: QueueType,
params: Params,
is_ext: bool,
},
QueryControl(QueryCtrlResponse),
GetControl(CtrlVal),
SetControl,
Error(CmdError),
}Expand description
A response to a VideoCmd. These correspond to VIRTIO_VIDEO_RESP_*.
Variants§
NoData
QueryCapability(Vec<FormatDesc>)
ResourceQueue
GetParams
QueryControl(QueryCtrlResponse)
GetControl(CtrlVal)
SetControl
Error(CmdError)
Trait Implementations§
Source§impl Clone for CmdResponse
impl Clone for CmdResponse
Source§fn clone(&self) -> CmdResponse
fn clone(&self) -> CmdResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CmdResponse
impl Debug for CmdResponse
Source§impl From<VideoError> for CmdResponse
impl From<VideoError> for CmdResponse
Source§fn from(error: VideoError) -> Self
fn from(error: VideoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CmdResponse
impl RefUnwindSafe for CmdResponse
impl Send for CmdResponse
impl Sync for CmdResponse
impl Unpin for CmdResponse
impl UnwindSafe for CmdResponse
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