pub enum AdminRequest {
Show 14 variants
KeyIssue {
ttl_seconds: u64,
label: Option<String>,
},
KeyList {
page: u32,
page_size: u16,
},
KeyShow {
key_id: u64,
},
KeyReveal {
key_id: u64,
},
KeyRenew {
key_id: u64,
ttl_seconds: u64,
},
KeyRevoke {
key_id: u64,
},
KeyGc,
AuthStatus,
AuthStateReset {
confirm: bool,
},
RootKeyRotate {
new_admin_key: String,
},
LegacyProtocolSet {
policy: LegacyProtocolPolicy,
},
ConnectionList {
key_id: Option<u64>,
page: u32,
page_size: u16,
},
ServiceList {
key_id: Option<u64>,
page: u32,
page_size: u16,
},
ConnectionRetire {
key_id: Option<u64>,
service_name: String,
conn_id: Option<u32>,
},
}Variants§
KeyIssue
KeyList
KeyShow
KeyReveal
KeyRenew
KeyRevoke
KeyGc
AuthStatus
AuthStateReset
RootKeyRotate
LegacyProtocolSet
Fields
§
policy: LegacyProtocolPolicyConnectionList
ServiceList
ConnectionRetire
Drop registered control connections the relay is still holding.
The manual counterpart to the relay’s own lease sweep, for the case an operator can see but the relay cannot: a registration that answers its heartbeat yet no longer forwards, or a service whose connection quota is full of connections that should have gone away.
Implementations§
Source§impl AdminRequest
impl AdminRequest
pub fn is_mutating(&self) -> bool
Trait Implementations§
Source§impl Clone for AdminRequest
impl Clone for AdminRequest
Source§impl Debug for AdminRequest
impl Debug for AdminRequest
Source§impl<'de> Deserialize<'de> for AdminRequest
impl<'de> Deserialize<'de> for AdminRequest
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 AdminRequest
Source§impl PartialEq for AdminRequest
impl PartialEq for AdminRequest
Source§impl Serialize for AdminRequest
impl Serialize for AdminRequest
impl StructuralPartialEq for AdminRequest
Auto Trait Implementations§
impl Freeze for AdminRequest
impl RefUnwindSafe for AdminRequest
impl Send for AdminRequest
impl Sync for AdminRequest
impl Unpin for AdminRequest
impl UnsafeUnpin for AdminRequest
impl UnwindSafe for AdminRequest
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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