pub trait DescriptorChainIter {
    // Required methods
    fn next(&mut self) -> Result<Option<Descriptor>>;
    fn count(&self) -> u16;
    fn id(&self) -> Option<u16>;
}
Expand description

Iterator over the descriptors of a descriptor chain.

Required Methods§

source

fn next(&mut self) -> Result<Option<Descriptor>>

Return the next descriptor in the chain, or None if there are no more descriptors.

source

fn count(&self) -> u16

Return the number of descriptor has been iterated in the chain

source

fn id(&self) -> Option<u16>

Return Packed descriptor chain buffer id if iterator reaches end, otherwise return None SplitDescriptorChainIter should return None.

Implementors§