Home
last modified time | relevance | path

Searched refs:try_send (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dmpsc_test.rs151 assert!(tx.try_send(1).is_ok()); in sdv_bounded_try_send_try_recv_test()
152 assert_eq!(tx.try_send(2), Err(TrySendError::Full(2))); in sdv_bounded_try_send_try_recv_test()
202 assert!(tx.try_send(1).is_err()); in sdv_mpsc_is_closed()
252 let _ = tx.try_send(i); in sdv_mpsc_len()
H A Duds_test.rs181 match server.try_send(b"hello") { in sdv_uds_datagram_try_test()
H A Dudp_test.rs182 match connected_sender.try_send(b"Hello") { in sdv_udp_try_send()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/
H A Dmod.rs154 pub fn try_send(&self, value: T) -> Result<(), TrySendError<T>> { in try_send() method
155 self.channel.try_send(value) in try_send()
H A Darray.rs119 pub(crate) fn try_send(&self, value: T) -> Result<(), TrySendError<T>> { in try_send() method
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/unix/
H A Ddatagram.rs236 pub fn try_send(&self, buf: &[u8]) -> Result<usize> { in try_send() method
538 match server.try_send(b"hello") { in ut_uds_datagram_try_test()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/
H A Dudp.rs997 pub fn try_send(&self, buf: &[u8]) -> io::Result<usize> { in try_send() method