pub struct CircuitBreakOptions {
pub run_id: Option<String>,
pub reason: Option<String>,
pub agent_id: Option<String>,
}Expand description
Phase 1.5: options for circuit_break. The optional reason is recorded
on the snapshot lesson and the CIRCUIT_BROKEN event payload — pass a
short tag like “repeated_query” or “drift_detected” so later diagnosis is
easier.
Fields§
§run_id: Option<String>§reason: Option<String>§agent_id: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for CircuitBreakOptions
impl Clone for CircuitBreakOptions
Source§fn clone(&self) -> CircuitBreakOptions
fn clone(&self) -> CircuitBreakOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CircuitBreakOptions
impl Debug for CircuitBreakOptions
Source§impl Default for CircuitBreakOptions
impl Default for CircuitBreakOptions
Source§fn default() -> CircuitBreakOptions
fn default() -> CircuitBreakOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CircuitBreakOptions
impl RefUnwindSafe for CircuitBreakOptions
impl Send for CircuitBreakOptions
impl Sync for CircuitBreakOptions
impl Unpin for CircuitBreakOptions
impl UnsafeUnpin for CircuitBreakOptions
impl UnwindSafe for CircuitBreakOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request