pub struct SendProduct<L, R> {
pub inner: L,
pub own: R,
}Expand description
A product of independently typed send protocols.
Fields§
§inner: L§own: RImplementations§
Source§impl<L, R> SendProduct<L, R>
impl<L, R> SendProduct<L, R>
Trait Implementations§
Source§impl<L, R> Clone for SendProduct<L, R>
impl<L, R> Clone for SendProduct<L, R>
Source§fn clone(&self) -> SendProduct<L, R>
fn clone(&self) -> SendProduct<L, R>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<L, R> Debug for SendProduct<L, R>
impl<L, R> Debug for SendProduct<L, R>
impl<L, R> Eq for SendProduct<L, R>
Source§impl<L, R> From<(L, R)> for SendProduct<L, R>
impl<L, R> From<(L, R)> for SendProduct<L, R>
Source§fn from(_: (L, R)) -> SendProduct<L, R>
fn from(_: (L, R)) -> SendProduct<L, R>
Converts to this type from the input type.
Source§impl<L, R, N> ObservesCreations<N> for SendProduct<L, R>
impl<L, R, N> ObservesCreations<N> for SendProduct<L, R>
Source§fn observes_creation(&self, nonce: N) -> bool
fn observes_creation(&self, nonce: N) -> bool
Whether this algebra contains an
ObserveCreation for nonce.Source§impl<L, R> PartialEq for SendProduct<L, R>
impl<L, R> PartialEq for SendProduct<L, R>
Source§impl<A, R, L, Own> RouteSends<A, R> for SendProduct<L, Own>
impl<A, R, L, Own> RouteSends<A, R> for SendProduct<L, Own>
Source§type Error = SendProductError<<L as RouteSends<A, R>>::Error, <Own as RouteSends<A, R>>::Error>
type Error = SendProductError<<L as RouteSends<A, R>>::Error, <Own as RouteSends<A, R>>::Error>
Delivery failure.
Source§async fn route(
self,
from: A,
router: &mut R,
) -> Result<(), <SendProduct<L, Own> as RouteSends<A, R>>::Error>
async fn route( self, from: A, router: &mut R, ) -> Result<(), <SendProduct<L, Own> as RouteSends<A, R>>::Error>
Route every send in fold order.
Source§impl<L, R> SendAlgebra for SendProduct<L, R>where
L: SendAlgebra,
R: SendAlgebra,
impl<L, R> SendAlgebra for SendProduct<L, R>where
L: SendAlgebra,
R: SendAlgebra,
Source§impl<L, R, Input, Path> SendInput<Input, Inner<Path>> for SendProduct<L, R>where
L: SendInput<Input, Path>,
impl<L, R, Input, Path> SendInput<Input, Inner<Path>> for SendProduct<L, R>where
L: SendInput<Input, Path>,
Source§impl<L, R, Input> SendInput<Input, Own> for SendProduct<L, R>
impl<L, R, Input> SendInput<Input, Own> for SendProduct<L, R>
impl<L, R> StructuralPartialEq for SendProduct<L, R>
Auto Trait Implementations§
impl<L, R> Freeze for SendProduct<L, R>
impl<L, R> RefUnwindSafe for SendProduct<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for SendProduct<L, R>
impl<L, R> Sync for SendProduct<L, R>
impl<L, R> Unpin for SendProduct<L, R>
impl<L, R> UnsafeUnpin for SendProduct<L, R>where
L: UnsafeUnpin,
R: UnsafeUnpin,
impl<L, R> UnwindSafe for SendProduct<L, R>where
L: UnwindSafe,
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