pub struct CompilationEventQueue { /* private fields */ }Implementations§
Source§impl CompilationEventQueue
impl CompilationEventQueue
pub fn send( &self, message: Arc<dyn CompilationEvent>, ) -> Result<(), SendError<Arc<dyn CompilationEvent>>>
Sourcepub async fn flush_and_close(&self)
pub async fn flush_and_close(&self)
Waits until all events sent so far have been delivered to subscribers, then closes all subscriber channels. Subscriptions drain their remaining events and then end. Events sent afterwards are only recorded in the history, and new subscriptions close after replaying it.
pub fn subscribe( &self, event_types: Option<Vec<String>>, ) -> Receiver<Arc<dyn CompilationEvent>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CompilationEventQueue
impl !UnwindSafe for CompilationEventQueue
impl Freeze for CompilationEventQueue
impl Send for CompilationEventQueue
impl Sync for CompilationEventQueue
impl Unpin for CompilationEventQueue
impl UnsafeUnpin for CompilationEventQueue
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more