pub struct HandleAcks<S, B> { /* private fields */ }
Expand description

Struct responsible for buffering and yielding responses to the request we’re polling for.

For more information, see the module documentation.

Trait Implementations§

source§

impl<S: Debug, B: Debug> Debug for HandleAcks<S, B>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<S: Default, B: Default> Default for HandleAcks<S, B>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<P: PlatformTypes, B: Map<Addrd<Token>, ()> + Debug, E: Error, S: Step<P, PollReq = Addrd<Req<P>>, PollResp = Addrd<Resp<P>>, Error = E>> Step<P> for HandleAcks<S, B>

§

type PollReq = Addrd<Req<P>>

Type that this step returns when polling for a request
§

type PollResp = Addrd<Resp<P>>

Type that this step returns when polling for a response
§

type Error = Error<E>

Type of error that can be yielded by poll_req / poll_resp
§

type Inner = S

Inner step that will be performed before this one.
source§

fn inner(&self) -> &S

Get reference to inner step Read more
source§

fn poll_req( &self, snap: &Snapshot<P>, effects: &mut <P as PlatformTypes>::Effects ) -> StepOutput<Self::PollReq, Self::Error>

Poll for an inbound request Read more
source§

fn poll_resp( &self, snap: &Snapshot<P>, effects: &mut <P as PlatformTypes>::Effects, token: Token, addr: SocketAddr ) -> StepOutput<Self::PollResp, Self::Error>

Poll for an inbound response Read more
source§

fn on_message_sent( &self, snap: &Snapshot<P>, effects: &mut P::Effects, msg: &Addrd<Message<P>> ) -> Result<(), Self::Error>

Invoked after messages are sent, allowing for internal state change. Read more
source§

fn notify<Path>( &self, path: Path, effects: &mut P::Effects ) -> Result<(), Self::Error>where Path: AsRef<str> + Clone,

Update Observers Read more
source§

fn before_message_sent( &self, snap: &Snapshot<P>, effects: &mut <P as PlatformTypes>::Effects, msg: &mut Addrd<Message<P>> ) -> Result<(), Self::Error>

Invoked before messages are sent, allowing for internal state change & modification. Read more

Auto Trait Implementations§

§

impl<S, B> RefUnwindSafe for HandleAcks<S, B>where S: RefUnwindSafe,

§

impl<S, B> Send for HandleAcks<S, B>where B: Send, S: Send,

§

impl<S, B> Sync for HandleAcks<S, B>where B: Send + Sync, S: Sync,

§

impl<S, B> Unpin for HandleAcks<S, B>where B: Unpin, S: Unpin,

§

impl<S, B> UnwindSafe for HandleAcks<S, B>where S: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<F, A, TF, T> Sequence<F, A, TF> for T

source§

fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>, Ap: HKT1, <Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>, <Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>, <Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>, F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V