Trait amplify::JoinSplit

source ·
pub trait JoinSplit {
    type A;
    type B;

    fn join(left: Self::A, right: Self::B) -> Self;
    fn split(self) -> (Self::A, Self::B);
}
Expand description

Trait for splittable streams and other types, which can be separated into some two types (JoinSplit::A, JoinSplit::B), like a reader and writer streams.

Required Associated Types§

First separable type (like reader)

Second separable type (like writer)

Required Methods§

Reconstruct the type from the halves

Split the type into two

Implementors§