Trait uavcan::storage::InterfaceStorageHandle [−][src]
pub trait InterfaceStorageHandle<F: TransferFrame> { fn pop(&self) -> Option<F>; fn max_priority(&self) -> Option<TransferFrameID>; fn push(&self, frame: F) -> Result<(), StorageError>; }
Required Methods
fn pop(&self) -> Option<F>
Removes the item with highest priority from the priority queue and returns it, or None
if it is empty.
fn max_priority(&self) -> Option<TransferFrameID>
Returns the TransferFrameID
of the TransferFrame
with highest priority, or None
if the queue is empty.
fn push(&self, frame: F) -> Result<(), StorageError>
Pushes an item on the interface queue.
This is the same as calling insert_interface_queue
on the Storage
which this handle is associated with.