[−][src]Enum one_of_futures::OneOf4
Combines multiple different futures, streams, or sinks having the same associated types into a single type.
Variants
Trait Implementations
impl<One: Clone, Two: Clone, Three: Clone, Four: Clone> Clone for OneOf4<One, Two, Three, Four>
[src]
fn clone(&self) -> OneOf4<One, Two, Three, Four>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<One: Copy, Two: Copy, Three: Copy, Four: Copy> Copy for OneOf4<One, Two, Three, Four>
[src]
impl<One: Debug, Two: Debug, Three: Debug, Four: Debug> Debug for OneOf4<One, Two, Three, Four>
[src]
impl<One: Eq, Two: Eq, Three: Eq, Four: Eq> Eq for OneOf4<One, Two, Three, Four>
[src]
impl<One, Two, Three, Four> FusedFuture for OneOf4<One, Two, Three, Four> where
One: FusedFuture,
Two: FusedFuture<Output = One::Output>,
Three: FusedFuture<Output = One::Output>,
Four: FusedFuture<Output = One::Output>,
[src]
One: FusedFuture,
Two: FusedFuture<Output = One::Output>,
Three: FusedFuture<Output = One::Output>,
Four: FusedFuture<Output = One::Output>,
fn is_terminated(&self) -> bool
[src]
impl<One, Two, Three, Four> FusedStream for OneOf4<One, Two, Three, Four> where
One: FusedStream,
Two: FusedStream<Item = One::Item>,
Three: FusedStream<Item = One::Item>,
Four: FusedStream<Item = One::Item>,
[src]
One: FusedStream,
Two: FusedStream<Item = One::Item>,
Three: FusedStream<Item = One::Item>,
Four: FusedStream<Item = One::Item>,
fn is_terminated(&self) -> bool
[src]
impl<One, Two, Three, Four> Future for OneOf4<One, Two, Three, Four> where
One: Future,
Two: Future<Output = One::Output>,
Three: Future<Output = One::Output>,
Four: Future<Output = One::Output>,
[src]
One: Future,
Two: Future<Output = One::Output>,
Three: Future<Output = One::Output>,
Four: Future<Output = One::Output>,
type Output = One::Output
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output>
[src]
impl<One: Hash, Two: Hash, Three: Hash, Four: Hash> Hash for OneOf4<One, Two, Three, Four>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<One: Ord, Two: Ord, Three: Ord, Four: Ord> Ord for OneOf4<One, Two, Three, Four>
[src]
fn cmp(&self, other: &OneOf4<One, Two, Three, Four>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<One: PartialEq, Two: PartialEq, Three: PartialEq, Four: PartialEq> PartialEq<OneOf4<One, Two, Three, Four>> for OneOf4<One, Two, Three, Four>
[src]
fn eq(&self, other: &OneOf4<One, Two, Three, Four>) -> bool
[src]
fn ne(&self, other: &OneOf4<One, Two, Three, Four>) -> bool
[src]
impl<One: PartialOrd, Two: PartialOrd, Three: PartialOrd, Four: PartialOrd> PartialOrd<OneOf4<One, Two, Three, Four>> for OneOf4<One, Two, Three, Four>
[src]
fn partial_cmp(&self, other: &OneOf4<One, Two, Three, Four>) -> Option<Ordering>
[src]
fn lt(&self, other: &OneOf4<One, Two, Three, Four>) -> bool
[src]
fn le(&self, other: &OneOf4<One, Two, Three, Four>) -> bool
[src]
fn gt(&self, other: &OneOf4<One, Two, Three, Four>) -> bool
[src]
fn ge(&self, other: &OneOf4<One, Two, Three, Four>) -> bool
[src]
impl<Item, One, Two, Three, Four> Sink<Item> for OneOf4<One, Two, Three, Four> where
One: Sink<Item>,
Two: Sink<Item, Error = One::Error>,
Three: Sink<Item, Error = One::Error>,
Four: Sink<Item, Error = One::Error>,
[src]
One: Sink<Item>,
Two: Sink<Item, Error = One::Error>,
Three: Sink<Item, Error = One::Error>,
Four: Sink<Item, Error = One::Error>,
type Error = One::Error
The type of value produced by the sink when an error occurs.
fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
fn start_send(self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error>
[src]
fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
fn poll_close(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Result<(), Self::Error>>
impl<One, Two, Three, Four> Stream for OneOf4<One, Two, Three, Four> where
One: Stream,
Two: Stream<Item = One::Item>,
Three: Stream<Item = One::Item>,
Four: Stream<Item = One::Item>,
[src]
One: Stream,
Two: Stream<Item = One::Item>,
Three: Stream<Item = One::Item>,
Four: Stream<Item = One::Item>,
type Item = One::Item
Values yielded by the stream.
fn poll_next(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<One::Item>>
[src]
fn size_hint(&self) -> (usize, Option<usize>)
[src]
impl<One, Two, Three, Four> StructuralEq for OneOf4<One, Two, Three, Four>
[src]
impl<One, Two, Three, Four> StructuralPartialEq for OneOf4<One, Two, Three, Four>
[src]
Auto Trait Implementations
impl<One, Two, Three, Four> RefUnwindSafe for OneOf4<One, Two, Three, Four> where
Four: RefUnwindSafe,
One: RefUnwindSafe,
Three: RefUnwindSafe,
Two: RefUnwindSafe,
Four: RefUnwindSafe,
One: RefUnwindSafe,
Three: RefUnwindSafe,
Two: RefUnwindSafe,
impl<One, Two, Three, Four> Send for OneOf4<One, Two, Three, Four> where
Four: Send,
One: Send,
Three: Send,
Two: Send,
Four: Send,
One: Send,
Three: Send,
Two: Send,
impl<One, Two, Three, Four> Sync for OneOf4<One, Two, Three, Four> where
Four: Sync,
One: Sync,
Three: Sync,
Two: Sync,
Four: Sync,
One: Sync,
Three: Sync,
Two: Sync,
impl<One, Two, Three, Four> Unpin for OneOf4<One, Two, Three, Four> where
Four: Unpin,
One: Unpin,
Three: Unpin,
Two: Unpin,
Four: Unpin,
One: Unpin,
Three: Unpin,
Two: Unpin,
impl<One, Two, Three, Four> UnwindSafe for OneOf4<One, Two, Three, Four> where
Four: UnwindSafe,
One: UnwindSafe,
Three: UnwindSafe,
Two: UnwindSafe,
Four: UnwindSafe,
One: UnwindSafe,
Three: UnwindSafe,
Two: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src]
F: Future,
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
fn into_future(self) -> <F as IntoFuture>::Future
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src]
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T
The type of successful values yielded by this future
type Error = E
The type of failures yielded by this future
fn try_poll(self: Pin<&mut F>, cx: &mut Context) -> Poll<<F as Future>::Output>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T, E> TryStream for S where
S: Stream<Item = Result<T, E>> + ?Sized,
[src]
S: Stream<Item = Result<T, E>> + ?Sized,