pub struct PanicSwitch {
pub enabled: bool,
}Expand description
The anonymous-traffic circuit breaker (“panic switch”).
Held by the scheduler Durable Object. enabled: true makes every
anonymous edge route answer 503 Service Unavailable while the trusted
/api/v1/admin/* and /api/v1/scheduler/* routes keep working. Wire
shape of GET/POST /api/v1/admin/panic and of the scheduler object’s
/panic routes.
Fields§
§enabled: boolWhether anonymous traffic is being shed.
Trait Implementations§
Source§impl Clone for PanicSwitch
impl Clone for PanicSwitch
Source§impl ComposeSchema for PanicSwitch
impl ComposeSchema for PanicSwitch
impl Copy for PanicSwitch
Source§impl Debug for PanicSwitch
impl Debug for PanicSwitch
Source§impl<'de> Deserialize<'de> for PanicSwitch
impl<'de> Deserialize<'de> for PanicSwitch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PanicSwitch
Source§impl PartialEq for PanicSwitch
impl PartialEq for PanicSwitch
Source§impl Serialize for PanicSwitch
impl Serialize for PanicSwitch
impl StructuralPartialEq for PanicSwitch
Auto Trait Implementations§
impl Freeze for PanicSwitch
impl RefUnwindSafe for PanicSwitch
impl Send for PanicSwitch
impl Sync for PanicSwitch
impl Unpin for PanicSwitch
impl UnsafeUnpin for PanicSwitch
impl UnwindSafe for PanicSwitch
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.