#[non_exhaustive]pub enum ClientAgent {
Process(Message),
Collect(Instant),
Start(TransactionId, Instant),
Stop(TransactionId),
Close,
}Expand description
ClientAgent is Agent implementation that is used by Client to process transactions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Process(Message)
Hand an inbound message to the agent for matching against a transaction.
Collect(Instant)
Advance time so the agent can expire transactions.
Start(TransactionId, Instant)
Register a new transaction with its deadline.
Stop(TransactionId)
Abandon a transaction without waiting for its deadline.
Close
Close the agent, abandoning every outstanding transaction.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ClientAgent
impl Freeze for ClientAgent
impl Move for ClientAgent
impl RefUnwindSafe for ClientAgent
impl Send for ClientAgentwhere
RawVecInner: Send,
impl Sync for ClientAgentwhere
RawVecInner: Sync,
impl Unpin for ClientAgent
impl UnsafeUnpin for ClientAgentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<RawAttribute>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ClientAgentwhere
RawVecInner: UnwindSafe,
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