Lines Matching refs:try_send
57 pub fn try_send(&self, t: T) -> Result<(), TrySendError<T>> { in try_send() method
58 self.inner.try_send(t).map_err(|err| match err { in try_send()
1241 assert_eq!(tx.try_send(10), Ok(())); in oneshot_single_thread_try_send_open()
1249 assert_eq!(tx.try_send(10), Err(TrySendError::Disconnected(10))); in oneshot_single_thread_try_send_closed()
1255 assert_eq!(tx.try_send(10), Err(TrySendError::Full(10))); in oneshot_single_thread_try_send_closed2()
1524 let _ = tx.try_send(2); in test_recv_iter_break()
1636 assert_eq!(tx.try_send(1), Err(TrySendError::Full(1))); in try_send1()
1642 assert_eq!(tx.try_send(1), Ok(())); in try_send2()
1643 assert_eq!(tx.try_send(1), Err(TrySendError::Full(1))); in try_send2()
1649 assert_eq!(tx.try_send(1), Ok(())); in try_send3()
1651 assert_eq!(tx.try_send(1), Err(TrySendError::Disconnected(1))); in try_send3()
1662 tx2.try_send(()).unwrap(); in issue_15761()
1665 tx1.try_send(()).unwrap(); in issue_15761()