object_transfer 1.0.0

An object transfer library for various message broker and/or protocols
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::errors::AckError;
use crate::traits::AckTrait;
use ::async_trait::async_trait;

/// Acknowledgment handler that performs no operation.
///
/// This can be used in scenarios where an acknowledgment callback is
/// required by the interface but no actual acknowledgement should be sent
/// to the message broker.
pub struct AckNoop;

#[async_trait]
impl AckTrait for AckNoop {
  async fn ack(&self) -> Result<(), AckError> {
    Ok(())
  }
}