pub fn try_send_data(&mut self, chunk: Bytes) -> Result<(), Bytes> {
        self.tx
            .try_send(Ok(chunk))
            .map_err(|err| err.into_inner().expect("just sent Ok"))
    }
/// Try to send data on this channel.
///
/// # Errors
///
/// Returns `Err(Bytes)` if the channel could not (currently) accept
/// another `Bytes`.
///
/// # Note
///
/// This is mostly useful for when trying to send from some other thread
/// that doesn't have an async context. If in an async context, prefer
/// `send_data()` instead.
Try to send data on this channel.
Try to send data on this channel .
pub fn try_send_data(&mut self, chunk: Bytes) -> Result<(), Bytes> {
        self.tx
            .try_send(Ok(chunk))
            .map_err(|err| err.into_inner().expect("just sent Ok"))
    }
pub fn try_send_data ( & mut self , chunk : Bytes ) -> Result < ( ) , Bytes > { self . tx . try_send ( Ok ( chunk ) ) . map_err ( | err | err . into_inner ( ) . expect ( " " ) ) }
Try to send data on this channel.
Try to send data on this channel .
&mut self
chunk
Bytes
&mut self
chunk
Bytes
errors
Returns `Err(Bytes)` if the channel could not (currently) accept
another `Bytes`.
Returns ` Err ( Bytes ) ` if the channel could not ( currently ) accept another ` Bytes ` .
note
This is mostly useful for when trying to send from some other thread
that doesn't have an async context. If in an async context, prefer
`send_data()` instead.
This is mostly useful for when trying to send from some other thread that doesn ' t have an async context . If in an async context prefer ` send_data () ` instead .