Home
last modified time | relevance | path

Searched refs:try_write (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Drwlock.rs197 pub fn try_write(&self) -> Result<RwLockWriteGuard<'_, T>, LockError> { in try_write() method
426 let mut a = lock.try_write().unwrap(); in ut_rwlock_try_read_02()
498 let mut aa = lock.try_write().unwrap(); in ut_rwlock_try_write_01()
511 let mut a = lock.try_write().unwrap(); in ut_rwlock_try_write_02()
513 let res = lock.try_write(); in ut_rwlock_try_write_02()
517 let res2 = lock.try_write(); in ut_rwlock_try_write_02()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/unix/
H A Dstream.rs306 pub fn try_write(&self, buf: &[u8]) -> Result<usize> { in try_write() method
463 match server.try_write(b"hello") { in ut_uds_stream_try_test()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/tcp/
H A Dstream.rs254 pub fn try_write(&self, buf: &[u8]) -> io::Result<usize> { in try_write() method
775 stream.try_write(b"hello").unwrap(); in ut_tcp_stream_try()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Duds_test.rs139 match server.try_write(b"hello") { in sdv_uds_stream_try_test()
H A Dtcp_test.rs99 stream.try_write(b"hello").unwrap(); in sdv_tcp_stream_try()