pub struct AuthStatus {Show 13 fields
pub schema_version: u16,
pub safe_mode: bool,
pub capacity: usize,
pub active_keys: usize,
pub expired_keys: usize,
pub revoked_keys: usize,
pub legacy_protocol: LegacyProtocolPolicy,
pub active_legacy_connections: u64,
pub last_legacy_connection_at: Option<u64>,
pub auth_successes: u64,
pub auth_failures: u64,
pub server_instance_id: String,
pub capabilities: Vec<String>,
}Fields§
§schema_version: u16§safe_mode: bool§capacity: usize§active_keys: usize§expired_keys: usize§revoked_keys: usize§legacy_protocol: LegacyProtocolPolicy§active_legacy_connections: u64§last_legacy_connection_at: Option<u64>§auth_successes: u64§auth_failures: u64§server_instance_id: String§capabilities: Vec<String>What this relay supports beyond the base protocol, such as
CAPABILITY_KEY_NAMESPACES. A relay older than the field reports none.
Trait Implementations§
Source§impl Clone for AuthStatus
impl Clone for AuthStatus
Source§impl Debug for AuthStatus
impl Debug for AuthStatus
Source§impl<'de> Deserialize<'de> for AuthStatus
impl<'de> Deserialize<'de> for AuthStatus
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
Auto Trait Implementations§
impl Forget for AuthStatus
impl Freeze for AuthStatus
impl Move for AuthStatus
impl RefUnwindSafe for AuthStatus
impl Send for AuthStatuswhere
RawVecInner: Send,
impl Sync for AuthStatuswhere
RawVecInner: Sync,
impl Unpin for AuthStatus
impl UnsafeUnpin for AuthStatuswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for AuthStatuswhere
RawVecInner: UnwindSafe,
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<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