pub fn symmetrical_with_capacity<F, E, W, R>(
    format: F,
    encoding: E,
    writer: W,
    reader: R,
    capacity: usize,
) -> (Sender<F, E, W>, Receiver<F, E, R>)
where
    F: Serializer + Deserializer<<E as Decoder>::Item> + Clone,
    E: Encoder<<F as Serializer>::Output> + Decoder + Clone,
    W: AsyncWrite,
    R: AsyncRead,
{
    (
        Sender::new(format.clone(), encoding.clone(), writer),
        Receiver::with_capacity(format, encoding, reader, capacity),
    )
}
/// Create a [`Sender`]/[`Receiver`] pair which use the same serialization format and frame encoding
/// in both directions, allocating an initial capacity for the read buffer on the receiver.
Create a [`Sender`]/[`Receiver`] pair which use the same serialization format and frame encoding
in both directions, allocating an initial capacity for the read buffer on the receiver.
Create a [ ` Sender ` ] / [ ` Receiver ` ] pair which use the same serialization format and frame encoding in both directions allocating an initial capacity for the read buffer on the receiver .
pub fn symmetrical_with_capacity<F, E, W, R>(
    format: F,
    encoding: E,
    writer: W,
    reader: R,
    capacity: usize,
) -> (Sender<F, E, W>, Receiver<F, E, R>)
where
    F: Serializer + Deserializer<<E as Decoder>::Item> + Clone,
    E: Encoder<<F as Serializer>::Output> + Decoder + Clone,
    W: AsyncWrite,
    R: AsyncRead,
{
    (
        Sender::new(format.clone(), encoding.clone(), writer),
        Receiver::with_capacity(format, encoding, reader, capacity),
    )
}
pub fn symmetrical_with_capacity < F , E , W , R > ( format : F , encoding : E , writer : W , reader : R , capacity : usize , ) -> ( Sender < F , E , W > , Receiver < F , E , R > ) where F : Serializer + Deserializer < < E as Decoder > :: Item > + Clone , E : Encoder < < F as Serializer > :: Output > + Decoder + Clone , W : AsyncWrite , R : AsyncRead , { ( Sender :: new ( format . clone ( ) , encoding . clone ( ) , writer ) , Receiver :: with_capacity ( format , encoding , reader , capacity ) , ) }
Create a [`Sender`]/[`Receiver`] pair which use the same serialization format and frame encoding
in both directions, allocating an initial capacity for the read buffer on the receiver.
Create a [ ` Sender ` ] / [ ` Receiver ` ] pair which use the same serialization format and frame encoding in both directions allocating an initial capacity for the read buffer on the receiver .
format
F
encoding
E
writer
W
reader
R
capacity
usize