pub struct Events { /* private fields */ }Expand description
Represents events that may be sent during WDL evaluation.
Implementations§
Source§impl Events
impl Events
Sourcepub fn new(capacity: usize) -> Self
pub fn new(capacity: usize) -> Self
Constructs a new Events and enables subscribing to all event channels.
Sourcepub fn disabled() -> Self
pub fn disabled() -> Self
Constructs a new Events and disable subscribing to any event channel.
Sourcepub fn subscribe_engine(&self) -> Option<Receiver<EngineEvent>>
pub fn subscribe_engine(&self) -> Option<Receiver<EngineEvent>>
Subscribes to the WDL engine events channel.
Returns None if WDL engine events are not enabled.
Sourcepub fn subscribe_crankshaft(&self) -> Option<Receiver<CrankshaftEvent>>
pub fn subscribe_crankshaft(&self) -> Option<Receiver<CrankshaftEvent>>
Subscribes to the Crankshaft events channel.
Returns None if Crankshaft events are not enabled.
Sourcepub fn subscribe_transfer(&self) -> Option<Receiver<TransferEvent>>
pub fn subscribe_transfer(&self) -> Option<Receiver<TransferEvent>>
Subscribes to the transfer events channel.
Returns None if transfer events are not enabled.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Events
impl !RefUnwindSafe for Events
impl Send for Events
impl Sync for Events
impl Unpin for Events
impl UnsafeUnpin for Events
impl !UnwindSafe for Events
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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