pub struct NoopAs4Sender;Expand description
An As4Sender that succeeds immediately without sending anything.
Use in tests and environments where outbound AS4 delivery is not yet wired. All outbox messages are acknowledged (removed from the queue) without being transmitted.
§⚠️ Data loss warning
Every outbox message is silently discarded — no EDIFACT message is sent to any counterparty. Do not use in production.
Trait Implementations§
Source§impl As4Sender for NoopAs4Sender
impl As4Sender for NoopAs4Sender
Source§async fn send(&self, _msg: &OutboxMessage) -> Result<(), EngineError>
async fn send(&self, _msg: &OutboxMessage) -> Result<(), EngineError>
Transmit
msg and return when the remote MSH has accepted it.Source§impl Clone for NoopAs4Sender
impl Clone for NoopAs4Sender
Source§fn clone(&self) -> NoopAs4Sender
fn clone(&self) -> NoopAs4Sender
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoopAs4Sender
Source§impl Debug for NoopAs4Sender
impl Debug for NoopAs4Sender
Source§impl Default for NoopAs4Sender
impl Default for NoopAs4Sender
Source§fn default() -> NoopAs4Sender
fn default() -> NoopAs4Sender
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopAs4Sender
impl RefUnwindSafe for NoopAs4Sender
impl Send for NoopAs4Sender
impl Sync for NoopAs4Sender
impl Unpin for NoopAs4Sender
impl UnsafeUnpin for NoopAs4Sender
impl UnwindSafe for NoopAs4Sender
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