pub enum EitherOutput<A, B> {
First(A),
Second(B),
}Expand description
Dispatch output to either of two sinks implementing the shared output contract.
Variants§
Trait Implementations§
Source§impl<S, A, B> Output<S> for EitherOutput<A, B>
impl<S, A, B> Output<S> for EitherOutput<A, B>
fn publish<'life0, 'life1, 'async_trait>(
&'life0 mut self,
snapshot: &'life1 S,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn hardware_status<'life0, 'async_trait>(
&'life0 mut self,
status: HardwareStatus,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<A, B> Forget for EitherOutput<A, B>
impl<A, B> Freeze for EitherOutput<A, B>
impl<A, B> Move for EitherOutput<A, B>
impl<A, B> RefUnwindSafe for EitherOutput<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for EitherOutput<A, B>
impl<A, B> Sync for EitherOutput<A, B>
impl<A, B> Unpin for EitherOutput<A, B>
impl<A, B> UnsafeUnpin for EitherOutput<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for EitherOutput<A, B>where
A: UnwindSafe,
B: 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