Home
last modified time | relevance | path

Searched refs:as_ref (Results 1 - 25 of 38) sorted by relevance

12

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/
H A Dasync_dir.rs60 let path = path.as_ref().to_owned();
89 let path = path.as_ref().to_owned();
119 let path = path.as_ref().to_owned();
145 let path = path.as_ref().to_owned();
172 let path = path.as_ref().to_owned();
207 let path = path.as_ref().to_owned();
238 let from = from.as_ref().to_owned();
239 let to = to.as_ref().to_owned();
274 let from = from.as_ref().to_owned();
275 let to = to.as_ref()
[all...]
H A Dopen_options.rs296 let path = path.as_ref().to_owned();
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/task/
H A Dtask_handle.rs46 unsafe { self.task.as_ref().header() } in header()
50 unsafe { self.task.as_ref().inner() } in inner()
137 .as_ref()
305 let ffrt_task = unsafe { (*self.inner().task.get()).as_ref().unwrap() };
334 let ffrt_task = unsafe { (*self.inner().task.get()).as_ref().unwrap() };
348 let ffrt_task = unsafe { (*self.inner().task.get()).as_ref().unwrap() };
H A Dwaker.rs44 let vir_tble = header.as_ref().vtable; in wake()
50 let vir_tble = header.as_ref().vtable; in wake_by_ref()
56 let vir_tble = header.as_ref().vtable; in drop()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/tls/verifier/
H A Dopenssl.rs135 fn as_ref(&self) -> &X509StoreContextRef { in as_ref() functions
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/
H A Dlinked_list.rs43 let prev = T::node(node).as_ref().prev; in remove_node()
44 let next = T::node(node).as_ref().next; in remove_node()
138 unsafe { L::node(self.head).as_ref().next == Some(self.head) }
149 let head = L::node(self.head).as_ref();
154 let next = L::node(node).as_ref().next;
207 unsafe { ptr.as_ref().val } in get_val()
/commonlibrary/rust/ylong_http/ylong_http/src/h3/
H A Dencoder.rs343 if let Some(frame) = self.current_frame.as_ref() { in encode_settings_payload()
485 if let Some(frame) = self.current_frame.as_ref() { in encode_frame_type()
493 if let Some(frame) = self.current_frame.as_ref() { in encode_data_len()
507 .as_ref() in encode_cancel_push()
521 if let Some(frame) = self.current_frame.as_ref() { in encode_goaway()
538 if let Some(frame) = self.current_frame.as_ref() { in encode_max_push_id()
556 if let Some(frame) = self.current_frame.as_ref() { in encode_settings_len()
604 if let Some(frame) = self.current_frame.as_ref() { in encode_headers_payload()
616 if let Some(frame) = self.current_frame.as_ref() { in encode_data_payload()
H A Doctets.rs29 let bytes: [u8; $len] = <[u8; $len]>::try_from($buf[..$len].as_ref()).unwrap();
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/
H A Dwheel.rs221 let expiration = unsafe { clock_entry.as_ref().expiration() };
240 let level = unsafe { clock_entry.as_ref().level() };
259 let expected_expiration = unsafe { item.as_ref().expiration() };
342 let duration = unsafe { clock_entry.as_ref().expiration() };
357 let duration = unsafe { clock_entry.as_ref().duration() };
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/
H A Dsimple.rs112 if let Some(name) = part.name.as_ref() { in total_bytes()
117 if let Some(name) = part.file_name.as_ref() { in total_bytes()
125 if let Some(mime) = part.mime.as_ref() { in total_bytes()
380 let body = body.as_ref().to_vec(); in body()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/
H A Dasync_source.rs186 self.io.as_ref().unwrap().read(slice)
209 self.io.as_ref().unwrap().write(buf)
223 self.io.as_ref().unwrap().write_vectored(bufs)
240 self.io.as_ref().unwrap() in fmt()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
H A Dforeign.rs118 // owned.as_ref -> & borrowed
121 fn as_ref(&self) -> &$borrowed { in as_ref() functions
H A Dstack.rs57 fn as_ref(&self) -> &StackRef<T> { in as_ref() functions
/commonlibrary/rust/ylong_runtime/ylong_signal/src/
H A Dwindows.rs69 } else if let Some(fallback) = race_fallback.as_ref() {
H A Dunix.rs72 } else if let Some(fallback) = race_fallback.as_ref() {
/commonlibrary/rust/ylong_json/src/reader/
H A Dio_reader.rs201 self.cache.as_ref().map(|c| c.cache.len()) in cached_len()
206 self.cache.as_ref().map(|c| c.cache.as_slice()) in cached_slice()
211 self.cache.as_ref().map(|c| c.cache.clone()) in cached_data()
/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/
H A Dmod.rs131 self.scheme.as_ref() in scheme()
149 self.authority.as_ref() in authority()
165 self.authority.as_ref().map(|auth| auth.host()) in host()
181 self.authority.as_ref().and_then(|auth| auth.port()) in port()
197 self.path.as_ref() in path()
213 self.query.as_ref() in query()
688 self.port.as_ref() in port()
/commonlibrary/rust/ylong_http/ylong_http_client/src/
H A Derror.rs207 return unsafe { USER_ABORTED.as_ref().map(|e| e.as_ref()) };
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/uds/
H A Ddatagram.rs39 super::socket::data_gram_bind(path.as_ref()).map(Self::from_std) in bind()
H A Dstream.rs40 super::socket::connect(path.as_ref()).map(UnixStream::from_std) in connect()
H A Dlistener.rs43 super::socket::bind(path.as_ref()).map(UnixListener::from_std) in bind()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/
H A Dnet.rs84 self.inner.as_ref().map_or(Ok(()), |net_inner| {
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
H A Dsleeper.rs61 if let Some(worker_idx) = res.as_ref() { in pop_worker()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/
H A Dctx.rs234 let path = match file.as_ref().as_os_str().to_str() {
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/sys/unix/
H A Dchild.rs43 self.std.as_ref().unwrap().id()

Completed in 13 milliseconds

12