pub struct DeployGuard { /* private fields */ }Expand description
Adapter-boundary guard for the operator deploy API, the sibling of
crate::namespace::NamespaceGuard for engine-global operations.
Implementations§
Source§impl DeployGuard
impl DeployGuard
Sourcepub const fn new(resolver: NamespaceResolver) -> Self
pub const fn new(resolver: NamespaceResolver) -> Self
Build a guard from the shared namespace resolver (the engine owner).
Authorize a caller for the deploy surface before any handler logic.
§Errors
Returns a deploy_denied wire error when the transport already denied
the caller (bad/missing credentials) or when the caller lacks the
deploy grant; the denial hint names the knob that actually carries the
grant, mirroring the namespace-denial pattern.
Sourcepub fn engine(&self) -> Result<&Arc<Engine>, ServerError>
pub fn engine(&self) -> Result<&Arc<Engine>, ServerError>
Borrow the engine handle for an authorized deploy operation.
§Errors
Returns ServerError::Config only for guards constructed without an
engine for unit tests.
Trait Implementations§
Source§impl Clone for DeployGuard
impl Clone for DeployGuard
Source§fn clone(&self) -> DeployGuard
fn clone(&self) -> DeployGuard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DeployGuard
impl !UnwindSafe for DeployGuard
impl Freeze for DeployGuard
impl Send for DeployGuard
impl Sync for DeployGuard
impl Unpin for DeployGuard
impl UnsafeUnpin for DeployGuard
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
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,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§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>
Wrap the input message
T in a tonic::Request