Skip to main content

BufferResponses

Struct BufferResponses 

Source
pub struct BufferResponses<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 BufferResponses<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 BufferResponses<S, B>

Source§

fn default() -> Self

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

impl<P: PlatformTypes, B: Map<(SocketAddr, Token, Type), Addrd<Resp<P>>>, E: Error, S: Step<P, PollReq = Addrd<Req<P>>, PollResp = Addrd<Resp<P>>, Error = E>> Step<P> for BufferResponses<S, B>

Source§

type PollReq = Addrd<Req<P>>

Type that this step returns when polling for a request
Source§

type PollResp = Addrd<Resp<P>>

Type that this step returns when polling for a response
Source§

type Error = Error<E>

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

type Inner = S

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

fn inner(&self) -> &Self::Inner

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 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
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

Auto Trait Implementations§

§

impl<S, B> !Freeze for BufferResponses<S, B>

§

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

§

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

§

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

§

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

§

impl<S, B> UnsafeUnpin for BufferResponses<S, B>
where S: UnsafeUnpin, B: UnsafeUnpin,

§

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

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 for T

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,