Skip to main content

Watch

Trait Watch 

Source
pub trait Watch {
    type Watching: Stream;

    // Required method
    fn watch(self) -> Self::Watching;
}
Expand description

Several streams, given as a tuple, merged into one. See the module docs.

Required Associated Types§

Source

type Watching: Stream

The merged stream.

Required Methods§

Source

fn watch(self) -> Self::Watching

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin, D: Stream + Unpin, E: Stream + Unpin, F: Stream + Unpin, G: Stream + Unpin, H: Stream + Unpin, I: Stream + Unpin, J: Stream + Unpin, K: Stream + Unpin, L: Stream + Unpin> Watch for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

type Watching = Watching12<A, B, C, D, E, F, G, H, I, J, K, L>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin, D: Stream + Unpin, E: Stream + Unpin, F: Stream + Unpin, G: Stream + Unpin, H: Stream + Unpin, I: Stream + Unpin, J: Stream + Unpin, K: Stream + Unpin> Watch for (A, B, C, D, E, F, G, H, I, J, K)

Source§

type Watching = Watching11<A, B, C, D, E, F, G, H, I, J, K>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin, D: Stream + Unpin, E: Stream + Unpin, F: Stream + Unpin, G: Stream + Unpin, H: Stream + Unpin, I: Stream + Unpin, J: Stream + Unpin> Watch for (A, B, C, D, E, F, G, H, I, J)

Source§

type Watching = Watching10<A, B, C, D, E, F, G, H, I, J>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin, D: Stream + Unpin, E: Stream + Unpin, F: Stream + Unpin, G: Stream + Unpin, H: Stream + Unpin, I: Stream + Unpin> Watch for (A, B, C, D, E, F, G, H, I)

Source§

type Watching = Watching9<A, B, C, D, E, F, G, H, I>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin, D: Stream + Unpin, E: Stream + Unpin, F: Stream + Unpin, G: Stream + Unpin, H: Stream + Unpin> Watch for (A, B, C, D, E, F, G, H)

Source§

type Watching = Watching8<A, B, C, D, E, F, G, H>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin, D: Stream + Unpin, E: Stream + Unpin, F: Stream + Unpin, G: Stream + Unpin> Watch for (A, B, C, D, E, F, G)

Source§

type Watching = Watching7<A, B, C, D, E, F, G>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin, D: Stream + Unpin, E: Stream + Unpin, F: Stream + Unpin> Watch for (A, B, C, D, E, F)

Source§

type Watching = Watching6<A, B, C, D, E, F>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin, D: Stream + Unpin, E: Stream + Unpin> Watch for (A, B, C, D, E)

Source§

type Watching = Watching5<A, B, C, D, E>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin, D: Stream + Unpin> Watch for (A, B, C, D)

Source§

type Watching = Watching4<A, B, C, D>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin, C: Stream + Unpin> Watch for (A, B, C)

Source§

type Watching = Watching3<A, B, C>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream + Unpin, B: Stream + Unpin> Watch for (A, B)

Source§

type Watching = Watching2<A, B>

Source§

fn watch(self) -> Self::Watching

Source§

impl<A: Stream> Watch for (A,)

One stream is its own merge: its type unchanged.

Source§

type Watching = A

Source§

fn watch(self) -> A

Implementors§