Home
last modified time | relevance | path

Searched refs:try_clone (Results 1 - 12 of 12) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/tcp/
H A Dstream.rs44 pub fn try_clone(&self) -> io::Result<Self> { in try_clone() functions
46 inner: self.inner.try_clone()?, in try_clone()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/uds/
H A Ddatagram.rs110 /// let sock_copy = socket.try_clone().expect("try_clone() fail");
114 pub fn try_clone(&self) -> io::Result<UnixDatagram> { in try_clone() functions
115 Ok(Self::from_std(self.inner.try_clone()?)) in try_clone()
316 let sender2 = sender.try_clone().unwrap(); in ut_uds_datagram_pair()
H A Dstream.rs85 /// let sock_copy = socket.try_clone().expect("try_clone() fail");
89 pub fn try_clone(&self) -> io::Result<UnixStream> { in try_clone() functions
90 Ok(Self::from_std(self.inner.try_clone()?)) in try_clone()
268 let sender2 = sender.try_clone().unwrap(); in ut_uds_stream_pair()
H A Dlistener.rs122 /// let listener_copy = listener.try_clone().expect("try_clone failed");
126 pub fn try_clone(&self) -> io::Result<UnixListener> { in try_clone() functions
127 Ok(Self::from_std(self.inner.try_clone()?)) in try_clone()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/tcp/
H A Dstream.rs61 pub fn try_clone(&self) -> io::Result<Self> { in try_clone() functions
63 inner: self.inner.try_clone()?, in try_clone()
/commonlibrary/rust/ylong_runtime/ylong_io/tests/
H A Dtcp_test.rs55 let mut read_stream = stream.try_clone().unwrap(); in sdv_tcp_server()
128 let mut read_stream = stream.try_clone().unwrap(); in sdv_tcp_server_vectored()
H A Duds_test.rs148 let sender2 = sender.try_clone().unwrap(); in sdv_uds_send_recv()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/
H A Dwaker.rs91 let selector = selector.try_clone()?;
H A Dkqueue.rs128 pub fn try_clone(&self) -> io::Result<Selector> { in try_clone() functions
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/signal/unix/
H A Dregistry.rs147 self.stream.receiver.try_clone()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/
H A Dasync_file.rs336 /// async fn try_clone() -> std::io::Result<()> { in fmt()
338 /// let file_copy = f.try_clone().await?; in fmt()
342 pub async fn try_clone(&self) -> io::Result<File> { in fmt()
344 let file = async_op(move || file.try_clone()).await?; in fmt()
703 /// UT test for `try_clone`
708 /// 2. Creates a new File instance with `try_clone()`, check result is
717 let res = file.try_clone().await; in ut_fs_file_try_clone()
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dasync_fs.rs314 /// SDV test for `try_clone`
319 /// 2. Creates a new File instance with `try_clone()`, check result is Ok(()).
326 let res = file.try_clone().await; in sdv_async_fs_try_clone()
339 /// 2. Creates a new File instance with `try_clone()`, check result is Ok(()).

Completed in 6 milliseconds