pub enum EmitResult {
Completed,
Closed,
}Expand description
Send complete event result status.
Variants§
Implementations§
Source§impl EmitResult
impl EmitResult
Sourcepub fn completed(self) -> Result<(), CompleteQError>
pub fn completed(self) -> Result<(), CompleteQError>
Convert EmitResult structure into Result<(),CompleteQError>
If channel closed this method will return [Err(CompleteQError::PipeBroken)]
Sourcepub fn is_closed(&self) -> bool
pub fn is_closed(&self) -> bool
Helper method to detect if EmitResult enum is EmitResult::Closed
Auto Trait Implementations§
impl Freeze for EmitResult
impl RefUnwindSafe for EmitResult
impl Send for EmitResult
impl Sync for EmitResult
impl Unpin for EmitResult
impl UnwindSafe for EmitResult
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