pub(crate) fn from_raw_unchecked(tx: Tx, rx: Rx) -> Chan<S, Tx, Rx> {
        Chan {
            tx: Some(tx),
            rx: Some(rx),
            drop_tx: Arc::new(Mutex::new(Err(IncompleteHalf::Unclosed))),
            drop_rx: Arc::new(Mutex::new(Err(IncompleteHalf::Unclosed))),
            session: PhantomData,
        }
    }
/// Create a new channel with an arbitrary environment and session type. This is equivalent to
/// casting a new channel to an arbitrary environment, and doesn't guarantee the environment is
/// coherent with regard to the session type. Use with care!
Create a new channel with an arbitrary environment and session type. This is equivalent to
casting a new channel to an arbitrary environment, and doesn't guarantee the environment is
coherent with regard to the session type. Use with care!
Create a new channel with an arbitrary environment and session type . This is equivalent to casting a new channel to an arbitrary environment and doesn ' t guarantee the environment is coherent with regard to the session type . Use with care!
pub(crate) fn from_raw_unchecked(tx: Tx, rx: Rx) -> Chan<S, Tx, Rx> {
        Chan {
            tx: Some(tx),
            rx: Some(rx),
            drop_tx: Arc::new(Mutex::new(Err(IncompleteHalf::Unclosed))),
            drop_rx: Arc::new(Mutex::new(Err(IncompleteHalf::Unclosed))),
            session: PhantomData,
        }
    }
pub ( crate ) fn from_raw_unchecked ( tx : Tx , rx : Rx ) -> Chan < S , Tx , Rx > { Chan { tx : Some ( tx ) , rx : Some ( rx ) , drop_tx : Arc :: new ( Mutex :: new ( Err ( IncompleteHalf :: Unclosed ) ) ) , drop_rx : Arc :: new ( Mutex :: new ( Err ( IncompleteHalf :: Unclosed ) ) ) , session : PhantomData , } }
Create a new channel with an arbitrary environment and session type.
Create a new channel with an arbitrary environment and session type .
tx
Tx
rx
Rx