pub struct OrChain<R>(/* private fields */);
Expand description
Trait Implementations§
Source§impl<T, S, T1, T2, T3, T4, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T1, T2, T3, T4, T5, T6, T7, T8)>where
T: Clone,
T1: Reactor<T, S>,
T2: Reactor<T, S, Response = T1::Response>,
T1::Error: From<T2::Error> + From<T3::Error> + From<T4::Error> + From<T5::Error> + From<T6::Error> + From<T7::Error> + From<T8::Error>,
T3: Reactor<T, S, Response = T1::Response>,
T4: Reactor<T, S, Response = T1::Response>,
T5: Reactor<T, S, Response = T1::Response>,
T6: Reactor<T, S, Response = T1::Response>,
T7: Reactor<T, S, Response = T1::Response>,
T8: Reactor<T, S, Response = T1::Response>,
impl<T, S, T1, T2, T3, T4, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T1, T2, T3, T4, T5, T6, T7, T8)>where
T: Clone,
T1: Reactor<T, S>,
T2: Reactor<T, S, Response = T1::Response>,
T1::Error: From<T2::Error> + From<T3::Error> + From<T4::Error> + From<T5::Error> + From<T6::Error> + From<T7::Error> + From<T8::Error>,
T3: Reactor<T, S, Response = T1::Response>,
T4: Reactor<T, S, Response = T1::Response>,
T5: Reactor<T, S, Response = T1::Response>,
T6: Reactor<T, S, Response = T1::Response>,
T7: Reactor<T, S, Response = T1::Response>,
T8: Reactor<T, S, Response = T1::Response>,
Source§impl<T, S, T2, T3, T4, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T2, T3, T4, T5, T6, T7, T8)>where
T: Clone,
T2: Reactor<T, S>,
T3: Reactor<T, S, Response = T2::Response>,
T2::Error: From<T3::Error> + From<T4::Error> + From<T5::Error> + From<T6::Error> + From<T7::Error> + From<T8::Error>,
T4: Reactor<T, S, Response = T2::Response>,
T5: Reactor<T, S, Response = T2::Response>,
T6: Reactor<T, S, Response = T2::Response>,
T7: Reactor<T, S, Response = T2::Response>,
T8: Reactor<T, S, Response = T2::Response>,
impl<T, S, T2, T3, T4, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T2, T3, T4, T5, T6, T7, T8)>where
T: Clone,
T2: Reactor<T, S>,
T3: Reactor<T, S, Response = T2::Response>,
T2::Error: From<T3::Error> + From<T4::Error> + From<T5::Error> + From<T6::Error> + From<T7::Error> + From<T8::Error>,
T4: Reactor<T, S, Response = T2::Response>,
T5: Reactor<T, S, Response = T2::Response>,
T6: Reactor<T, S, Response = T2::Response>,
T7: Reactor<T, S, Response = T2::Response>,
T8: Reactor<T, S, Response = T2::Response>,
Source§impl<T, S, T3, T4, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T3, T4, T5, T6, T7, T8)>where
T: Clone,
T3: Reactor<T, S>,
T4: Reactor<T, S, Response = T3::Response>,
T3::Error: From<T4::Error> + From<T5::Error> + From<T6::Error> + From<T7::Error> + From<T8::Error>,
T5: Reactor<T, S, Response = T3::Response>,
T6: Reactor<T, S, Response = T3::Response>,
T7: Reactor<T, S, Response = T3::Response>,
T8: Reactor<T, S, Response = T3::Response>,
impl<T, S, T3, T4, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T3, T4, T5, T6, T7, T8)>where
T: Clone,
T3: Reactor<T, S>,
T4: Reactor<T, S, Response = T3::Response>,
T3::Error: From<T4::Error> + From<T5::Error> + From<T6::Error> + From<T7::Error> + From<T8::Error>,
T5: Reactor<T, S, Response = T3::Response>,
T6: Reactor<T, S, Response = T3::Response>,
T7: Reactor<T, S, Response = T3::Response>,
T8: Reactor<T, S, Response = T3::Response>,
Source§impl<T, S, T4, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T4, T5, T6, T7, T8)>
impl<T, S, T4, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T4, T5, T6, T7, T8)>
Source§impl<T, S, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T5, T6, T7, T8)>
impl<T, S, T5, T6, T7, T8> IntoReactor<T, S> for OrChain<(T5, T6, T7, T8)>
Source§impl<T, S, T6, T7, T8> IntoReactor<T, S> for OrChain<(T6, T7, T8)>
impl<T, S, T6, T7, T8> IntoReactor<T, S> for OrChain<(T6, T7, T8)>
Source§impl<T, S, T7, T8> IntoReactor<T, S> for OrChain<(T7, T8)>
impl<T, S, T7, T8> IntoReactor<T, S> for OrChain<(T7, T8)>
Source§impl<T, S, R> IntoReactor<T, S> for OrChain<Vec<R>>
impl<T, S, R> IntoReactor<T, S> for OrChain<Vec<R>>
Source§impl<T, S, R> Reactor<T, S> for OrChain<Dynamic<Vec<R>>>
impl<T, S, R> Reactor<T, S> for OrChain<Dynamic<Vec<R>>>
Source§type Response = <R as Reactor<T, S>>::Response
type Response = <R as Reactor<T, S>>::Response
The output type of successful responses from the reactor.
Source§fn react(
&mut self,
event: Timed<Event<T>>,
context: Context<'_, S>,
) -> Result<Self::Response, Self::Error>
fn react( &mut self, event: Timed<Event<T>>, context: Context<'_, S>, ) -> Result<Self::Response, Self::Error>
fn map_response<P, F>(self, f: F) -> MapResponse<Self, F>
fn map_error<E, F>(self, f: F) -> MapError<Self, F>
Source§fn respond<P>(self, response: P) -> Respond<Self, P>
fn respond<P>(self, response: P) -> Respond<Self, P>
Reacts with this reactor and then responds with the given
response
, regardless of this
reactor’s output.Source§fn fail<E>(self, error: E) -> Fail<Self, E>
fn fail<E>(self, error: E) -> Fail<Self, E>
Reacts with this reactor and then fails with the given
error
, regardless of this
reactor’s output.Source§fn then<R>(self, reactor: R) -> Then<Self, R>
fn then<R>(self, reactor: R) -> Then<Self, R>
Reacts with this reactor and then the given reactor (regardless of outputs). Read more
Source§fn and<R>(self, reactor: R) -> And<Self, R>
fn and<R>(self, reactor: R) -> And<Self, R>
Reacts with this reactor and then the given reactor if and only if this reactor returns
Ok
. Read moreimpl<R: Copy> Copy for OrChain<R>
Auto Trait Implementations§
impl<R> Freeze for OrChain<R>where
R: Freeze,
impl<R> RefUnwindSafe for OrChain<R>where
R: RefUnwindSafe,
impl<R> Send for OrChain<R>where
R: Send,
impl<R> Sync for OrChain<R>where
R: Sync,
impl<R> Unpin for OrChain<R>where
R: Unpin,
impl<R> UnwindSafe for OrChain<R>where
R: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, T> ReactorExt<T> for Rwhere
R: Reactor<T>,
impl<R, T> ReactorExt<T> for Rwhere
R: Reactor<T>,
Source§fn react_to_data_record(
&mut self,
record: T,
) -> Result<Self::Response, Self::Error>where
S: Default,
fn react_to_data_record(
&mut self,
record: T,
) -> Result<Self::Response, Self::Error>where
S: Default,
Reacts to a data record. Read more