pub struct ExecuteResult { /* private fields */ }Expand description
Statistics about the last invocation of execute.
Implementations§
Source§impl ExecuteResult
impl ExecuteResult
Sourcepub fn new(blocking: bool, count: usize, skip: usize) -> ExecuteResult
pub fn new(blocking: bool, count: usize, skip: usize) -> ExecuteResult
Create a new execute result
count gives the total number of events handled during the invocation
skip gives the offset from where queues will be checked during the next invocation (used for fairness)
Sourcepub fn shutdown(count: usize, skip: usize) -> ExecuteResult
pub fn shutdown(count: usize, skip: usize) -> ExecuteResult
Create an execute result indicating a normal shutdown request.
Sourcepub fn error(error: HandlerError, count: usize, skip: usize) -> ExecuteResult
pub fn error(error: HandlerError, count: usize, skip: usize) -> ExecuteResult
Create an execute result indicating an abnormal handler error.
Auto Trait Implementations§
impl Freeze for ExecuteResult
impl !RefUnwindSafe for ExecuteResult
impl Send for ExecuteResult
impl !Sync for ExecuteResult
impl Unpin for ExecuteResult
impl UnsafeUnpin for ExecuteResult
impl !UnwindSafe for ExecuteResult
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