pub struct Capture { /* private fields */ }Implementations§
Source§impl Capture
impl Capture
Sourcepub fn end(&self, reason: &str)
pub fn end(&self, reason: &str)
End it now. The task is stopped first, so the end line is the last.
The connection is reset here, not when the stopped task drops the
stream: by then Session::reset may have closed the tunnel.
Sourcepub async fn settle(&mut self)
pub async fn settle(&mut self)
After end: wait until the connection has been reset, so the relay
has let go of it before the next capture connects or the daemon exits.
pub fn is_running(&self) -> bool
pub fn read(&self, after: u64, q: &Query) -> Map<String, Value>
pub fn report(&self) -> Map<String, Value>
Auto Trait Implementations§
impl !RefUnwindSafe for Capture
impl !UnwindSafe for Capture
impl Forget for Capture
impl Freeze for Capture
impl Move for Capture
impl Send for Capture
impl Sync for Capture
impl Unpin for Capture
impl UnsafeUnpin for Capture
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