Struct hedwig::mock::MockAckToken [−][src]
pub struct MockAckToken { /* fields omitted */ }
test
or crate feature mock
only.Expand description
An acknowledge token associated with a particular message from a MockConsumer
.
When nack
is called for a particular message’s token, that message will be re-submitted to
consumers of the corresponding subscription. Messages otherwise do not have any timeout
behavior, so a message is only re-sent to consumers if it is explicitly nack’ed; ack
and
modify_deadline
have no effect
Trait Implementations
type ModifyError = Error
type ModifyError = Error
Errors returned by modify_deadline
Acknowledge the associated message
Negatively acknowledge the associated message
fn modify_deadline<'life0, 'async_trait>(
&'life0 mut self,
_seconds: u32
) -> Pin<Box<dyn Future<Output = Result<(), Self::ModifyError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn modify_deadline<'life0, 'async_trait>(
&'life0 mut self,
_seconds: u32
) -> Pin<Box<dyn Future<Output = Result<(), Self::ModifyError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Change the associated message’s acknowledge deadline to the given number of seconds
Auto Trait Implementations
impl RefUnwindSafe for MockAckToken
impl Send for MockAckToken
impl Sync for MockAckToken
impl Unpin for MockAckToken
impl UnwindSafe for MockAckToken
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more