pub struct Bus { /* private fields */ }Expand description
Cross-thread event channel. Once a buffer crosses a Queue boundary,
errors can no longer be propagated up the call stack with ? — they’re
posted here instead so the owner of the Pipeline can observe them.
Implementations§
Source§impl Bus
impl Bus
pub fn new() -> (Bus, BusReceiver)
Sourcepub fn post(&self, pp_log: &PpLog, event: BusEvent)
pub fn post(&self, pp_log: &PpLog, event: BusEvent)
pp_log is the posting element’s own crate::element::Element::pp_log
— used (via crate::pp_log’s pp_log: macro form) instead of event’s
own name so the element’s full identity, pipeline id included, reaches
the log record rather than just the name carried in the event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bus
impl RefUnwindSafe for Bus
impl Send for Bus
impl Sync for Bus
impl Unpin for Bus
impl UnsafeUnpin for Bus
impl UnwindSafe for Bus
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