Home
last modified time | relevance | path

Searched refs:bool (Results 1 - 25 of 141) sorted by relevance

123456

/commonlibrary/c_utils/base/src/rust/
H A Dfile_ex.rs24 pub fn RustLoadStringFromFile(filePath: &String, content: &mut String) -> bool; in RustLoadStringFromFile()
27 pub fn RustSaveStringToFile(filePath: &String, content: &String, truncated: bool) -> bool; in RustSaveStringToFile()
30 pub fn RustLoadStringFromFd(fd: i32, content: &mut String) -> bool; in RustLoadStringFromFd()
33 pub fn RustSaveStringToFd(fd: i32, content: &String) -> bool; in RustSaveStringToFd()
36 pub fn RustLoadBufferFromFile(filePath: &String, content: &mut Vec<c_char>) -> bool; in RustLoadBufferFromFile()
42 truncated: bool, in RustSaveBufferToFile()
43 ) -> bool; in RustSaveBufferToFile()
46 pub fn RustFileExists(fileName: &String) -> bool; in RustFileExists()
52 caseSensitive: bool, in RustStringExistsInFile()
[all...]
H A Ddirectory_ex.rs75 pub fn IsEmptyFolder(path: &CxxString) -> bool; in IsEmptyFolder()
79 pub fn ForceCreateDirectory(path: &CxxString) -> bool; in ForceCreateDirectory()
82 pub fn ForceRemoveDirectory(path: &CxxString) -> bool; in ForceRemoveDirectory()
85 pub fn RemoveFile(fileName: &CxxString) -> bool; in RemoveFile()
91 pub fn ChangeModeFile(fileName: &CxxString, mode: &u32) -> bool; in ChangeModeFile()
95 pub fn ChangeModeDirectory(path: &CxxString, mode: &u32) -> bool; in ChangeModeDirectory()
98 pub fn RustPathToRealPath(path: &String, realPath: &mut String) -> bool; in RustPathToRealPath()
H A Dashmem.rs66 pub fn MapAshmem(self: &Ashmem, mapType: i32) -> bool; in MapAshmem()
69 pub fn MapReadAndWriteAshmem(self: &Ashmem) -> bool; in MapReadAndWriteAshmem()
72 pub fn MapReadOnlyAshmem(self: &Ashmem) -> bool; in MapReadOnlyAshmem()
78 pub fn SetProtection(self: &Ashmem, protType: i32) -> bool; in SetProtection()
95 ) -> bool; in WriteToAshmem()
136 pub fn set_protection(&self, prot_type: i32) -> bool { in set_protection()
141 pub fn map_ashmem(&self, prot_type: i32) -> bool { in map_ashmem()
146 pub fn map_read_write_ashmem(&self) -> bool { in map_read_write_ashmem()
151 pub fn map_read_only_ashmem(&self) -> bool { in map_read_only_ashmem()
168 pub unsafe fn write_to_ashmem(&self, data: *const c_char, size: i32, offset: i32) -> bool { in write_to_ashmem()
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/
H A Dselect.rs72 /// async fn do_async3() -> bool {
171 random = $bool:expr;
212 let random = $bool;
276 ( { random = $bool:expr; $($t:tt)* } ) => {
277 $crate::select!({ random = $bool; $($t)*; panic!("select!: All the branches failed.") })
280 ( { random = $bool:expr; $($t:tt)* } else => $else:expr $(,)?) => {
281 $crate::select!({ random = $bool; $($t)*; $else })
285 ( { random = $bool:expr; ( $s:expr, $($_n:tt)* ) $($t:tt)* } $p:pat = $f:expr, if $c:expr => $h:block, $($r:tt)* ) => {
286 $crate::select!({ random = $bool; ( $s + 1, $($_n)*_) $($t)* ($s, $($_n)*) $p = $f, if $c => $h, } $($r)*)
290 ( { random = $bool
[all...]
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/
H A Devents.rs22 fn is_readable(&self) -> bool; in is_readable()
25 fn is_writable(&self) -> bool; in is_writable()
28 fn is_read_closed(&self) -> bool; in is_read_closed()
31 fn is_write_closed(&self) -> bool; in is_write_closed()
34 fn is_error(&self) -> bool; in is_error()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
H A Dsleeper.rs21 pub(crate) wake_by_search: Mutex<Vec<bool>>,
34 pub fn is_parked(&self, worker_index: &usize) -> bool { in is_parked()
51 pub fn pop_worker(&self, last_search: bool) -> Option<usize> { in pop_worker()
73 pub fn push_worker(&self, worker_index: usize) -> bool { in push_worker()
85 pub fn try_inc_searching_num(&self) -> bool { in try_inc_searching_num()
98 pub fn dec_searching_num(&self) -> bool { in dec_searching_num()
116 fn dec_searching_num(&self) -> bool { in dec_searching_num()
131 fn dec_active_num(&self) -> bool { in dec_active_num()
H A Dworker.rs42 pub(crate) fn wake_yield(&self) -> bool {
177 fn has_work(&self, inner: &mut Inner, worker_ctx: &WorkerContext) -> bool { in has_work()
228 is_cancel: bool,
232 pub(crate) is_searching: bool,
274 fn is_cancel(&self) -> bool { in is_cancel()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/
H A Dopen_options.rs78 pub fn read(&mut self, read: bool) -> &mut OpenOptions { in read()
102 pub fn write(&mut self, write: bool) -> &mut OpenOptions { in write()
150 pub fn append(&mut self, append: bool) -> &mut OpenOptions { in append()
180 pub fn truncate(&mut self, truncate: bool) -> &mut Self { in truncate()
206 pub fn create(&mut self, create: bool) -> &mut Self { in create()
248 pub fn create_new(&mut self, create_new: bool) -> &mut Self { in create_new()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/udp/
H A Dudp_socket.rs288 pub fn set_broadcast(&self, on: bool) -> io::Result<()> { in set_broadcast()
308 pub fn broadcast(&self) -> io::Result<bool> { in broadcast()
335 pub fn multicast_loop_v4(&self) -> io::Result<bool> { in multicast_loop_v4()
342 pub fn set_multicast_loop_v4(&self, multicast_loop_v4: bool) -> io::Result<()> { in set_multicast_loop_v4()
361 pub fn multicast_loop_v6(&self) -> io::Result<bool> { in multicast_loop_v6()
368 pub fn set_multicast_loop_v6(&self, multicast_loop_v6: bool) -> io::Result<()> { in set_multicast_loop_v6()
631 pub fn set_broadcast(&self, on: bool) -> io::Result<()> { in set_broadcast()
655 pub fn broadcast(&self) -> io::Result<bool> { in broadcast()
660 pub fn multicast_loop_v4(&self) -> io::Result<bool> { in multicast_loop_v4()
667 pub fn set_multicast_loop_v4(&self, multicast_loop_v4: bool)
[all...]
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/udp/
H A Dudp_socket.rs170 pub fn set_broadcast(&self, on: bool) -> io::Result<()> { in set_broadcast()
189 pub fn broadcast(&self) -> io::Result<bool> { in broadcast()
247 pub fn multicast_loop_v4(&self) -> io::Result<bool> { in multicast_loop_v4()
254 pub fn set_multicast_loop_v4(&self, multicast_loop_v4: bool) -> io::Result<()> { in set_multicast_loop_v4()
273 pub fn multicast_loop_v6(&self) -> io::Result<bool> { in multicast_loop_v6()
280 pub fn set_multicast_loop_v6(&self, multicast_loop_v6: bool) -> io::Result<()> { in set_multicast_loop_v6()
511 pub fn set_broadcast(&self, on: bool) -> io::Result<()> { in set_broadcast()
535 pub fn broadcast(&self) -> io::Result<bool> { in broadcast()
540 pub fn multicast_loop_v4(&self) -> io::Result<bool> { in multicast_loop_v4()
547 pub fn set_multicast_loop_v4(&self, multicast_loop_v4: bool)
[all...]
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/
H A Devents.rs90 pub fn is_empty(&self) -> bool { in is_empty()
148 fn is_readable(&self) -> bool { in is_readable()
152 fn is_writable(&self) -> bool { in is_writable()
156 fn is_read_closed(&self) -> bool { in is_read_closed()
160 fn is_write_closed(&self) -> bool { in is_write_closed()
164 fn is_error(&self) -> bool { in is_error()
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dselect.rs32 async fn do_async3() -> bool { in sdv_new_select_basic()
154 async fn do_async3() -> Option<bool> { in sdv_new_select_match()
191 bool: bool, in sdv_new_select_precondition()
199 let mut test_struct = TestStruct { bool: true }; in sdv_new_select_precondition()
201 _ = test_struct.do_async(), if test_struct.bool => { in sdv_new_select_precondition()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/unbounded/
H A Dmod.rs141 pub fn is_closed(&self) -> bool { in is_closed()
155 pub fn is_same(&self, other: &Self) -> bool { in is_same()
185 pub fn is_empty(&self) -> bool { in is_empty()
227 pub fn is_empty(&self) -> bool { in is_empty()
/commonlibrary/rust/ylong_runtime/ylong_runtime_macros/src/
H A Dselect.rs19 flag_with: bool,
20 flag_except: bool,
21 flag_at: bool,
44 fn parse_ident(ident: &Ident, idx: &mut usize, flags: &mut Flags) -> bool { in parse_ident()
72 ) -> bool { in parse_group()
/commonlibrary/rust/ylong_http/ylong_http/src/h2/
H A Dframe.rs110 EnablePush(bool),
142 exclusive: bool,
244 pub fn is_end_stream(&self) -> bool { in is_end_stream()
249 pub fn is_end_headers(&self) -> bool { in is_end_headers()
254 pub fn is_padded(&self) -> bool { in is_padded()
259 pub fn is_ack(&self) -> bool { in is_ack()
269 pub fn set_end_stream(&mut self, end_stream: bool) { in set_end_stream()
278 pub fn set_end_headers(&mut self, end_headers: bool) { in set_end_headers()
287 pub fn set_padded(&mut self, padded: bool) { in set_padded()
429 pub fn enable_push(mut self, is_enable: bool)
[all...]
H A Dpseudo.rs43 pub(crate) fn is_empty(&self) -> bool {
52 pub(crate) fn contains_authority(&self) -> bool {
72 pub(crate) fn contains_method(&self) -> bool {
92 pub(crate) fn contains_path(&self) -> bool {
112 pub(crate) fn contains_scheme(&self) -> bool {
132 pub(crate) fn contains_status(&self) -> bool {
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/
H A Dhttp.rs109 enable_push: bool,
111 use_huffman: bool,
147 pub(crate) fn set_use_huffman_coding(&mut self, use_huffman: bool) {
166 pub(crate) fn enable_push(&self) -> bool {
182 pub(crate) fn use_huffman_coding(&self) -> bool {
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/
H A Dmod.rs246 pub fn is_closed(&self) -> bool { in is_closed()
260 pub fn is_same(&self, other: &Self) -> bool { in is_same()
303 pub fn is_empty(&self) -> bool { in is_empty()
345 pub fn is_empty(&self) -> bool { in is_empty()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Dwake_list.rs72 pub fn notify_one(&self) -> bool { in notify_one()
80 pub fn notify_all(&self) -> bool { in notify_all()
84 fn notify(&self, notify_type: Notify) -> bool { in notify()
107 fn notify(&mut self, notify_type: Notify) -> bool { in notify()
123 pub fn notify_one(&mut self) -> bool { in notify_one()
129 pub fn notify_all(&mut self) -> bool { in notify_all()
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/
H A Dmimetype.rs164 pub fn is_application(&self) -> bool { in is_application()
178 pub fn is_audio(&self) -> bool { in is_audio()
192 pub fn is_font(&self) -> bool { in is_font()
206 pub fn is_image(&self) -> bool { in is_image()
220 pub fn is_message(&self) -> bool { in is_message()
234 pub fn is_model(&self) -> bool { in is_model()
248 pub fn is_multipart(&self) -> bool { in is_multipart()
262 pub fn is_text(&self) -> bool { in is_text()
276 pub fn is_video(&self) -> bool { in is_video()
290 pub fn is_xnew(&self) -> bool { in is_xnew()
[all...]
/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/representation/
H A Dencoder.rs65 pub(crate) fn encode(&mut self, dst: &mut [u8], use_huffman: bool) -> usize {
147 pub(crate) fn is_empty(&self) -> bool {
265 fn new(index: usize, value: Vec<u8>, is_huffman: bool) -> Self { in new()
288 fn new(name: Vec<u8>, value: Vec<u8>, is_huffman: bool) -> Self { in new()
311 fn new(index: usize, value: Vec<u8>, is_huffman: bool) -> Self { in new()
334 fn new(name: Vec<u8>, value: Vec<u8>, is_huffman: bool) -> Self { in new()
357 fn new(index: usize, value: Vec<u8>, is_huffman: bool) -> Self { in new()
380 fn new(name: Vec<u8>, value: Vec<u8>, is_huffman: bool) -> Self { in new()
433 fn set_value(mut self, value: Vec<u8>, is_huffman: bool) -> Self { in set_value()
473 fn set_name_and_value(mut self, name: Vec<u8>, value: Vec<u8>, is_huffman: bool)
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/task/
H A Draw.rs35 pub(crate) run: unsafe fn(NonNull<Header>) -> bool,
37 pub(crate) schedule: unsafe fn(NonNull<Header>, bool),
45 pub(crate) set_waker: unsafe fn(NonNull<Header>, cur_state: usize, waker: *const ()) -> bool,
63 unsafe fn default_run(_task: NonNull<Header>) -> bool { in get_default_vtable()
66 unsafe fn default_schedule(_task: NonNull<Header>, _fifo: bool) {} in default_schedule()
73 ) -> bool { in default_set_waker()
123 pub(crate) fn run(self) -> bool {
138 pub(crate) unsafe fn set_waker(self, cur_state: usize, waker: *const ()) -> bool {
308 unsafe fn set_waker<T, S>(ptr: NonNull<Header>, cur_state: usize, waker: *const ()) -> bool in set_waker()
328 unsafe fn run<T, S>(ptr: NonNull<Header>) -> bool in run()
[all...]
H A Dstate.rs49 pub(crate) fn is_last_ref_count(prev: usize) -> bool {
54 pub(crate) fn is_canceled(cur: usize) -> bool {
59 pub(crate) fn is_care_join_handle(cur: usize) -> bool {
64 pub(crate) fn is_finished(cur: usize) -> bool {
69 pub(crate) fn is_set_waker(cur: usize) -> bool {
74 pub(crate) fn is_scheduling(cur: usize) -> bool {
79 pub(crate) fn is_running(cur: usize) -> bool {
86 pub(crate) fn need_enqueue(cur: usize) -> bool {
262 pub(crate) fn turn_to_canceled_and_scheduled(&self) -> bool {
319 pub(crate) fn try_turning_to_un_join_handle(&self) -> bool {
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/
H A Dready.rs71 pub fn is_empty(self) -> bool { in is_empty()
75 pub fn is_readable(self) -> bool { in is_readable()
79 pub fn is_writable(self) -> bool { in is_writable()
83 pub fn is_read_closed(self) -> bool { in is_read_closed()
87 pub fn is_write_closed(self) -> bool { in is_write_closed()
119 pub(crate) fn satisfies(self, interest: Interest) -> bool {
173 fn is_readable(event: i32) -> bool { in is_readable()
178 fn is_writable(event: i32) -> bool { in is_writable()
182 fn is_read_closed(event: i32) -> bool { in is_read_closed()
188 fn is_write_closed(event: i32) -> bool { in is_write_closed()
[all...]
/commonlibrary/rust/ylong_json/src/value/
H A Dnumber.rs50 pub fn is_unsigned(&self) -> bool { in is_unsigned()
66 pub fn is_signed(&self) -> bool { in is_signed()
82 pub fn is_float(&self) -> bool { in is_float()
157 fn eq(&self, other: &Self) -> bool { in eq()

Completed in 12 milliseconds

123456