pub trait As4Sender:
Send
+ Sync
+ 'static {
// Required method
fn send(
&self,
msg: &OutboxMessage,
) -> impl Future<Output = Result<(), EngineError>> + Send;
}Expand description
Sends a single AS4 / EDIINT-over-HTTP outbound message.
Implement this trait for your AS4 gateway client and pass it to
EngineContext::run_outbox_worker.
§Contract
Return Ok(()) only after the message has been durably accepted by the
receiving MSH. Return Err(…) on transient or permanent failure — the
outbox worker calls OutboxStore::reschedule so the message is retried.
Required Methods§
Sourcefn send(
&self,
msg: &OutboxMessage,
) -> impl Future<Output = Result<(), EngineError>> + Send
fn send( &self, msg: &OutboxMessage, ) -> impl Future<Output = Result<(), EngineError>> + Send
Transmit msg and return when the remote MSH has accepted it.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".