pub struct LogAs4Sender;Expand description
An As4Sender that logs every outbound message at warn level and
succeeds without transmitting.
Useful for development and integration-testing environments where the full AS4 stack is not yet available but message visibility is desired. All outbox messages are acknowledged (removed from the queue) after logging.
§⚠️ Data loss warning
No EDIFACT message is sent to any counterparty. Do not use in production.
Trait Implementations§
Source§impl As4Sender for LogAs4Sender
impl As4Sender for LogAs4Sender
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 LogAs4Sender
impl Clone for LogAs4Sender
Source§fn clone(&self) -> LogAs4Sender
fn clone(&self) -> LogAs4Sender
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 LogAs4Sender
Source§impl Debug for LogAs4Sender
impl Debug for LogAs4Sender
Source§impl Default for LogAs4Sender
impl Default for LogAs4Sender
Source§fn default() -> LogAs4Sender
fn default() -> LogAs4Sender
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogAs4Sender
impl RefUnwindSafe for LogAs4Sender
impl Send for LogAs4Sender
impl Sync for LogAs4Sender
impl Unpin for LogAs4Sender
impl UnsafeUnpin for LogAs4Sender
impl UnwindSafe for LogAs4Sender
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