pub struct PollContext<'a, R, I, D, Q>{
pub state: Option<&'a BrokerState>,
pub session: &'a str,
pub config: &'a AutoApproveConfig,
pub resolver: &'a R,
pub inspector: &'a I,
pub dispatcher: &'a mut D,
pub forwarder: &'a mut Q,
pub broker_url: Option<&'a str>,
}Expand description
Inputs for poll_tick.
Bundled so the per-tick API is one parameter wide and clippy’s
too_many_arguments lint stays happy.
Fields§
§state: Option<&'a BrokerState>Broker state used for stall detection by poll_tick.
Set to None when calling tick_from_status from a process that
does not own the broker state (e.g. the supervisor’s background
poll thread, which queries /status over HTTP instead).
session: &'a strtmux session name.
config: &'a AutoApproveConfigAuto-approve config (presets applied by poll_tick).
resolver: &'a RResolves agent ID to pane index.
inspector: &'a IInspects pane content.
dispatcher: &'a mut DSends approval keystrokes.
forwarder: &'a mut QForwards unsafe prompts to the dashboard.
broker_url: Option<&'a str>Optional broker URL for audit-log publishing.
Auto Trait Implementations§
impl<'a, R, I, D, Q> Freeze for PollContext<'a, R, I, D, Q>
impl<'a, R, I, D, Q> RefUnwindSafe for PollContext<'a, R, I, D, Q>
impl<'a, R, I, D, Q> Send for PollContext<'a, R, I, D, Q>
impl<'a, R, I, D, Q> Sync for PollContext<'a, R, I, D, Q>
impl<'a, R, I, D, Q> Unpin for PollContext<'a, R, I, D, Q>
impl<'a, R, I, D, Q> UnsafeUnpin for PollContext<'a, R, I, D, Q>
impl<'a, R, I, D, Q> !UnwindSafe for PollContext<'a, R, I, D, Q>
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> 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