pub struct AdapterHandle {
pub events: Receiver<Event>,
pub outcome: JoinHandle<AdapterOutcome>,
}Expand description
A handle to a running adapter tailer. Drop the events receiver (or drain
it to EOF) and AdapterHandle::join the outcome when the session ends.
Fields§
§events: Receiver<Event>The stream of parsed events, in arrival order. EOF when the tailer exits.
outcome: JoinHandle<AdapterOutcome>Joins the tailer thread and returns the adapter’s final outcome.
Implementations§
Source§impl AdapterHandle
impl AdapterHandle
Sourcepub fn join(self) -> Result<AdapterOutcome>
pub fn join(self) -> Result<AdapterOutcome>
Block until the tailer thread exits and return its outcome. The tailer
is total (never panics on record content), so a panic here indicates an
internal bug, surfaced as crate::Error::Storage for the binary to
attach anyhow context.
Auto Trait Implementations§
impl !RefUnwindSafe for AdapterHandle
impl !Sync for AdapterHandle
impl !UnwindSafe for AdapterHandle
impl Freeze for AdapterHandle
impl Send for AdapterHandle
impl Unpin for AdapterHandle
impl UnsafeUnpin for AdapterHandle
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