pub struct ProvisionIds<P, Inner, SeenIds> { /* private fields */ }
Expand description

Step responsible for setting the token of all outbound messages with empty ids (Id(0), assumed to be meaningless) with a new id that is guaranteed to be unique to the conversation with the message’s origin/destination address.

For more information, see the module documentation.

Trait Implementations§

source§

impl<P: Debug, Inner: Debug, SeenIds: Debug> Debug for ProvisionIds<P, Inner, SeenIds>

source§

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

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

impl<P, Inner, SeenIds> Default for ProvisionIds<P, Inner, SeenIds>where Inner: Default, SeenIds: Default,

source§

fn default() -> Self

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

impl<P, E: Error, Inner, Ids> Step<P> for ProvisionIds<P, Inner, Ids>where P: PlatformTypes, Inner: Step<P, PollReq = Addrd<Req<P>>, PollResp = Addrd<Resp<P>>, Error = E>, Ids: IdsBySocketAddr<P>,

§

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

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

type Inner = Inner

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

fn inner(&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 before_message_sent( &self, snap: &Snapshot<P>, effs: &mut P::Effects, msg: &mut Addrd<Message<P>> ) -> Result<(), Self::Error>

Invoked before messages are sent, allowing for internal state change & modification. 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 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<P, Inner, SeenIds> RefUnwindSafe for ProvisionIds<P, Inner, SeenIds>where Inner: RefUnwindSafe, P: RefUnwindSafe,

§

impl<P, Inner, SeenIds> Send for ProvisionIds<P, Inner, SeenIds>where Inner: Send, P: Send, SeenIds: Send,

§

impl<P, Inner, SeenIds> Sync for ProvisionIds<P, Inner, SeenIds>where Inner: Sync, P: Sync, SeenIds: Send + Sync,

§

impl<P, Inner, SeenIds> Unpin for ProvisionIds<P, Inner, SeenIds>where Inner: Unpin, P: Unpin, SeenIds: Unpin,

§

impl<P, Inner, SeenIds> UnwindSafe for ProvisionIds<P, Inner, SeenIds>where Inner: UnwindSafe, P: 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