pub struct XetState {
pub store: CasSubstrate,
pub registry: Option<RegistryClient>,
pub auth: ResourceAuthState,
pub cas_authorizer: Arc<dyn CasMountAuthorizer>,
}Expand description
Shared state for the axum HTTP handlers.
Fields§
§store: CasSubstrateL1 CAS substrate backing /get_xorb reads (shared with the registry’s
getBlob reconstruction path, #812). HTTP reads go through CasMount
so the authenticated Subject reaches the VFS policy boundary (#813),
enforced behind the #1094 bootstrap grant.
registry: Option<RegistryClient>Authenticated registry client — the write path (/v1/xorbs, /v1/shards)
must translate through its putBlob RPC rather than writing directly.
Dialed by the factory and held here so the 501 write stubs can be wired
without a wiring change. Option because the write path is not yet
implemented (the read/auth surface is exercisable without a live registry).
auth: ResourceAuthStateShared OAI-equivalent authentication and rate-limit state.
Explicitly installed CAS read PEP.
Production installs crate::mac::MacCasAuthorizer::fail_closed
until an authority-backed clearance adapter is configured. Tests and
future production wiring may inject another concrete authorizer without
bypassing the CasMount enforcement point.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XetState
impl !RefUnwindSafe for XetState
impl Send for XetState
impl Sync for XetState
impl Unpin for XetState
impl UnsafeUnpin for XetState
impl !UnwindSafe for XetState
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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 moreSource§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>
T in a tonic::Request