pub struct ControlHandle {
pub events: Receiver<ControlEvent>,
pub status: Receiver<ConnectionStatus>,
/* private fields */
}Expand description
Handle to a running ControlManager task.
Fields§
§events: Receiver<ControlEvent>§status: Receiver<ConnectionStatus>Implementations§
Source§impl ControlHandle
impl ControlHandle
Sourcepub async fn wait_for_session(&mut self) -> Result<SessionInfo, String>
pub async fn wait_for_session(&mut self) -> Result<SessionInfo, String>
Resolve once the session has been created (or the manager has failed before reaching that point). Consumes the one-shot; callable only once.
Sourcepub async fn send_continue(
&self,
params: ContinueParams,
) -> Result<(), SendError<ContinueParams>>
pub async fn send_continue( &self, params: ContinueParams, ) -> Result<(), SendError<ContinueParams>>
Send a Continue request to the control task. Errors if the manager has
exited.
Sourcepub async fn send_continue_to(
&self,
params: ContinueToParams,
) -> Result<(), SendError<ContinueToParams>>
pub async fn send_continue_to( &self, params: ContinueToParams, ) -> Result<(), SendError<ContinueToParams>>
Send a ContinueTo request to step to a specific slot/batch boundary.
Pair with ControlEvent::DiscoveryBatch to pause before each
discovered batch.
Auto Trait Implementations§
impl !RefUnwindSafe for ControlHandle
impl !UnwindSafe for ControlHandle
impl Freeze for ControlHandle
impl Send for ControlHandle
impl Sync for ControlHandle
impl Unpin for ControlHandle
impl UnsafeUnpin for ControlHandle
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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