pub struct NamespaceCapabilities { /* private fields */ }Expand description
Namespace capabilities discovered via describe_namespace.
Implementations§
Source§impl NamespaceCapabilities
impl NamespaceCapabilities
Sourcepub fn graceful_poll_shutdown(&self) -> bool
pub fn graceful_poll_shutdown(&self) -> bool
Returns true if the server supports graceful poll cancellation on shutdown, so pollers can let in-flight polls complete rather than hard-killing them.
Sourcepub fn poller_autoscaling(&self) -> bool
pub fn poller_autoscaling(&self) -> bool
Returns true if pollers may scale down on poll timeout even without an explicit scaling decision from the server.
Sourcepub fn poller_autoscaling_auto_enroll(&self) -> bool
pub fn poller_autoscaling_auto_enroll(&self) -> bool
Returns true if the namespace opts workers into poller autoscaling by default. Poller types left at their default are automatically enrolled into autoscaling when this is set.
Sourcepub fn worker_commands(&self) -> bool
pub fn worker_commands(&self) -> bool
Returns true if worker commands are supported in this namespace.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NamespaceCapabilities
impl !UnwindSafe for NamespaceCapabilities
impl Freeze for NamespaceCapabilities
impl Send for NamespaceCapabilities
impl Sync for NamespaceCapabilities
impl Unpin for NamespaceCapabilities
impl UnsafeUnpin for NamespaceCapabilities
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> 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 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>
Wrap the input message
T in a tonic::Request