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.
Sourcepub fn workflow_task_completion_pagination(&self) -> bool
pub fn workflow_task_completion_pagination(&self) -> bool
Returns true if the namespace accepts paginated RespondWorkflowTaskCompleted requests, so
large completions may be split across multiple page requests sharing one task token.
Sourcepub fn workflow_task_completion_size_limit(&self) -> Option<usize>
pub fn workflow_task_completion_size_limit(&self) -> Option<usize>
The namespace’s limit on the recombined size of a paginated workflow task completion, if one
is configured. None when unset (the server advertises 0 for no explicit limit).
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
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> ⓘ
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