pub struct IOContext<C: IOCallbackCustom> { /* private fields */ }Implementations§
Source§impl<C: IOCallbackCustom> IOContext<C>
impl<C: IOCallbackCustom> IOContext<C>
pub fn new(depth: usize, cbs: &IOWorkers<C>) -> Result<Arc<Self>, Error>
pub fn get_depth(&self) -> usize
pub fn submit( &self, event: Box<IOEvent<C>>, channel_type: IOChannelType, ) -> Result<(), Error>
pub fn pending_count(&self) -> usize
pub fn running_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for IOContext<C>
impl<C> !RefUnwindSafe for IOContext<C>
impl<C> Send for IOContext<C>
impl<C> Sync for IOContext<C>
impl<C> Unpin for IOContext<C>
impl<C> !UnwindSafe for IOContext<C>
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