pub trait Buf<P>where
P: PlatformTypes,
Self: Array<Item = (State<P::Clock>, Addrd<Message<P>>)>,{
// Provided methods
fn debug(
now: Instant<P::Clock>,
state: &State<P::Clock>,
msg: &Addrd<Message<P>>
) -> Debug { ... }
fn attempt_all<E>(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects
) -> Result<(), Error<E>> { ... }
fn forget(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects,
token: Token
) { ... }
fn mark_acked(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects,
token: Token
) { ... }
fn mark_reset(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects,
token: Token
) { ... }
fn maybe_seen_response<E>(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects,
msg: Addrd<&Message<P>>
) -> Result<(), Error<E>> { ... }
fn store_retryables<E>(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects,
msg: &Addrd<Message<P>>,
config: Config
) -> Result<(), Error<E>> { ... }
}
Expand description
Buffer used to store messages queued for retry
Provided Methods§
sourcefn debug(
now: Instant<P::Clock>,
state: &State<P::Clock>,
msg: &Addrd<Message<P>>
) -> Debug
fn debug( now: Instant<P::Clock>, state: &State<P::Clock>, msg: &Addrd<Message<P>> ) -> Debug
Data points used by log messaging
sourcefn attempt_all<E>(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects
) -> Result<(), Error<E>>
fn attempt_all<E>( &mut self, now: Instant<P::Clock>, effects: &mut P::Effects ) -> Result<(), Error<E>>
Send all messages that need to be sent
sourcefn forget(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects,
token: Token
)
fn forget( &mut self, now: Instant<P::Clock>, effects: &mut P::Effects, token: Token )
We saw a response and should remove all tracking of a token (if we have any)
sourcefn mark_acked(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects,
token: Token
)
fn mark_acked( &mut self, now: Instant<P::Clock>, effects: &mut P::Effects, token: Token )
We saw an ACK and should transition the retry state for matching outbound CONs to the “acked” state
sourcefn mark_reset(
&mut self,
now: Instant<P::Clock>,
effects: &mut P::Effects,
token: Token
)
fn mark_reset( &mut self, now: Instant<P::Clock>, effects: &mut P::Effects, token: Token )
We saw a RESET regarding token token