pub struct Driver<P, Ext = ()>(/* private fields */);
Implementations§
Source§impl<P, Ext> Driver<P, Ext>
impl<P, Ext> Driver<P, Ext>
pub const fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, id: OpId) -> bool
pub fn submit(&self) -> OpIdwhere
Ext: Default,
pub fn submit_ext(&self, ext: Ext) -> OpId
Sourcepub fn try_submit(&self) -> Result<OpId, Ext>where
Ext: Default,
pub fn try_submit(&self) -> Result<OpId, Ext>where
Ext: Default,
Submits an operation if there is sufficient spare capacity, otherwise an error is returned with the element.
pub fn try_submit_ext(&self, ext: Ext) -> Result<OpId, Ext>
Trait Implementations§
Auto Trait Implementations§
impl<P, Ext = ()> !Freeze for Driver<P, Ext>
impl<P, Ext = ()> !RefUnwindSafe for Driver<P, Ext>
impl<P, Ext = ()> !Send for Driver<P, Ext>
impl<P, Ext = ()> !Sync for Driver<P, Ext>
impl<P, Ext> Unpin for Driver<P, Ext>
impl<P, Ext = ()> !UnwindSafe for Driver<P, Ext>
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