pub struct CloseRouteOptions {
pub drain: bool,
pub drain_timeout: Duration,
pub consumer_identity: Option<ConsumerIdentity>,
pub consumer_capabilities: Option<Vec<String>>,
}Expand description
Options for SubcConsumer::close_route.
Fields§
§drain: boolAwait in-flight unary requests on the route to settle naturally before tearing it down. Defaults to false: close immediately, settling anything in flight as at-most-once failures (outcome_unknown if already sent, not_sent otherwise).
drain_timeout: DurationUpper bound on the drain wait (ignored when drain is false).
consumer_identity: Option<ConsumerIdentity>Override for the consumer identity used to locate the route being closed; when absent, SUBC_MODULE_ID and SUBC_LAUNCH_NONCE environment variables identify the route for a supervised consumer.
consumer_capabilities: Option<Vec<String>>Consumer-declared reverse-request capabilities for the route being closed. This is a declaration, not a verified privilege; providers treat an absent field as no reverse-request capability. Known MCP method-family values today are “elicitation”, “sampling”, and “roots”.
Trait Implementations§
Source§impl Clone for CloseRouteOptions
impl Clone for CloseRouteOptions
Source§fn clone(&self) -> CloseRouteOptions
fn clone(&self) -> CloseRouteOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more