Struct DaemonInboundAuthority
pub struct DaemonInboundAuthority {
pub pairing: PairingGuard,
pub inbound_auth: Arc<RpcInboundAuth>,
pub config: LiveConfigHandle,
}Expand description
The daemon generation’s one inbound-authentication state, handed to the supervised gateway so HTTP and RPC authenticate against the same accepted policy over the same live configuration.
Both surfaces persist under the process-wide config write lock and then
publish the policy compiled from the configuration they just wrote into
inbound_auth, as the next accepted revision. Because they share the one
authority and the one live configuration, a revocation persisted through
either surface binds the other before the writer returns, and neither can
republish policy compiled from a stale copy of the configuration.
Fields§
§pairing: PairingGuardCanonical live pairing authority for native bearer tokens.
inbound_auth: Arc<RpcInboundAuth>The accepted provider, profile and roster policy, shared with the RPC context.
config: LiveConfigHandleThe live configuration the RPC context reads and writes.
Trait Implementations§
Source§impl Clone for DaemonInboundAuthority
impl Clone for DaemonInboundAuthority
Source§fn clone(&self) -> DaemonInboundAuthority
fn clone(&self) -> DaemonInboundAuthority
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DaemonInboundAuthority
impl !UnwindSafe for DaemonInboundAuthority
impl Freeze for DaemonInboundAuthority
impl Send for DaemonInboundAuthority
impl Sync for DaemonInboundAuthority
impl Unpin for DaemonInboundAuthority
impl UnsafeUnpin for DaemonInboundAuthority
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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