Struct devices::virtio::video::async_cmd_desc_map::AsyncCmdDescMap
source · pub struct AsyncCmdDescMap(BTreeMap<AsyncCmdTag, DescriptorChain>);
Expand description
AsyncCmdDescMap is a BTreeMap which stores descriptor chains in which asynchronous responses will be written.
Tuple Fields§
§0: BTreeMap<AsyncCmdTag, DescriptorChain>
Implementations§
source§impl AsyncCmdDescMap
impl AsyncCmdDescMap
pub fn insert(&mut self, tag: AsyncCmdTag, descriptor_chain: DescriptorChain)
pub fn remove(&mut self, tag: &AsyncCmdTag) -> Option<DescriptorChain>
sourcepub fn create_cancellation_responses(
&self,
target_stream_id: &u32,
target_queue_type: Option<QueueType>,
processing_tag: Option<AsyncCmdTag>
) -> Vec<AsyncCmdResponse>
pub fn create_cancellation_responses( &self, target_stream_id: &u32, target_queue_type: Option<QueueType>, processing_tag: Option<AsyncCmdTag> ) -> Vec<AsyncCmdResponse>
Returns a list of AsyncCmdResponse
s to cancel pending commands that target
stream target_stream_id
.
If target_queue_type
is specified, then only create the requests for the specified queue.
Otherwise, create the requests for both input and output queue.
If processing_tag
is specified, a cancellation request for that tag will
not be created.
Trait Implementations§
source§impl Default for AsyncCmdDescMap
impl Default for AsyncCmdDescMap
source§fn default() -> AsyncCmdDescMap
fn default() -> AsyncCmdDescMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AsyncCmdDescMap
impl Send for AsyncCmdDescMap
impl Sync for AsyncCmdDescMap
impl Unpin for AsyncCmdDescMap
impl UnwindSafe for AsyncCmdDescMap
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.