pub struct ExchangeParams<'a> {Show 17 fields
pub executor: &'a Handle,
pub transaction_id: TransactionId,
pub connector: &'a dyn Connector,
pub encoder: &'a dyn OutboundDialectEncoder,
pub interpreter: &'a dyn InterpreterFactory,
pub endpoint_ref: &'a str,
pub credential_ref: Option<&'a str>,
pub session_attachment: Option<Arc<SessionAttachment>>,
pub input: &'a CanonicalInput,
pub config: &'a EffectiveConfig,
pub tools: &'a [ToolSpec],
pub interpretation_limits: InterpretationLimits,
pub deadline: Duration,
pub cleanup_deadline: Duration,
pub max_encoded_exchange_bytes: usize,
pub unit_tx: Option<Sender<CanonicalUnitEvent>>,
pub session_id_tx: Option<Sender<ExternalSessionId>>,
}Expand description
Parameters for running one exchange.
Fields§
§executor: &'a HandleInjected Tokio handle for owned exchange children (D-032).
transaction_id: TransactionIdTransaction id.
connector: &'a dyn ConnectorConnector instance.
encoder: &'a dyn OutboundDialectEncoderEncoder.
interpreter: &'a dyn InterpreterFactoryInterpreter factory.
endpoint_ref: &'a strEndpoint ref.
credential_ref: Option<&'a str>Credential ref.
session_attachment: Option<Arc<SessionAttachment>>Optional session attachment.
input: &'a CanonicalInputCanonical input.
config: &'a EffectiveConfigEffective config.
tools: &'a [ToolSpec]Tool specs for encoder.
interpretation_limits: InterpretationLimitsInterpretation limits.
deadline: DurationOverall deadline for the exchange.
cleanup_deadline: DurationJoin/abort grace for exchange children after cancel or terminal (D-012).
max_encoded_exchange_bytes: usizeChannel max encoded body size (D-015).
unit_tx: Option<Sender<CanonicalUnitEvent>>Optional live unit sink (D-011); when set, units are forwarded as produced.
session_id_tx: Option<Sender<ExternalSessionId>>Optional oneshot: authoritative external session id immediately after open (D-013).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExchangeParams<'a>
impl<'a> !UnwindSafe for ExchangeParams<'a>
impl<'a> Freeze for ExchangeParams<'a>
impl<'a> Send for ExchangeParams<'a>
impl<'a> Sync for ExchangeParams<'a>
impl<'a> Unpin for ExchangeParams<'a>
impl<'a> UnsafeUnpin for ExchangeParams<'a>
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