/DragonOS/user/apps/user-manage/src/check/ |
H A D | info.rs | 5 pub username: String, 6 pub uid: String, 7 pub gid: String, 9 pub group: String, 11 pub comment: String, 13 pub home_dir: String, 15 pub shell: String, 18 impl From<UAddInfo> for String { implementation 30 pub username: String, 31 pub home: Option<String>, [all …]
|
H A D | check.rs | 215 fn home(username: &String) -> String { in home() argument 216 let mut home = String::new(); in home() 298 fn check_home(home: &String) { in check_home() argument 311 fn parse_options(options: &HashMap<CmdOption, String>) -> UModInfo { in parse_options() 361 let mut to_change_username = String::new(); in check() 384 let mut new_password = String::new(); in check() 394 let mut check_password = String::new(); in check() 410 let mut old_password = String::new(); in check() 420 let mut check_password = String::new(); in check() 446 fn cur_username(uid: String) -> String { in cur_username() argument [all …]
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | logging.rs | 15 let channel: (mpsc::Sender<String>, mpsc::Receiver<String>) = mpsc::channel::<String>(); in init() 28 pub tui_receiver: Option<mpsc::Receiver<String>>, 32 pub fn new(tui_receiver: Option<mpsc::Receiver<String>>) -> Self { in new() 38 sender: mpsc::Sender<String>, 42 pub fn new(sender: mpsc::Sender<String>) -> Self { in new() 48 fn log(&self, message: String) { in log() argument
|
H A D | command.rs | 13 pub kmem: String, 25 fn kmem_file_parser(s: &str) -> Result<String, String> { in kmem_file_parser() argument
|
H A D | app.rs | 26 logs: Vec<String>, 29 backend_log_receiver: Option<std::sync::mpsc::Receiver<String>>, 56 pub fn set_backend_log_receiver(&mut self, receiver: std::sync::mpsc::Receiver<String>) { in set_backend_log_receiver() argument 71 .map(|rv| rv.try_iter().collect::<Vec<String>>()); in handle_logs_on_tick() 97 pub fn push_log(&mut self, log: String) { in push_log() argument 101 pub fn logs(&self) -> &Vec<String> { in logs() argument
|
/DragonOS/user/apps/user-manage/src/parser/ |
H A D | cmd.rs | 38 impl From<String> for CmdOption { 39 fn from(s: String) -> Self { in from() 80 pub username: String, 82 pub options: HashMap<CmdOption, String>, 88 pub username: Option<String>, 94 pub groupname: String, 95 pub options: HashMap<CmdOption, String>,
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | utils.rs | 1 use alloc::string::String; 20 pub(super) fn to_search_name(name: &str) -> String { in to_search_name() argument 26 pub(super) fn to_search_name_string(mut name: String) -> String { in to_search_name_string() argument
|
/DragonOS/kernel/crates/intertrait/tests/ |
H A D | on-trait-impl-assoc-type3.rs | 14 fn concat(&self, prefix: T, a: Self::I1, b: Self::I2) -> String; in concat() argument 18 impl Concat<String> for Data { 22 fn concat(&self, prefix: String, a: Self::I1, b: Self::I2) -> String { in concat() argument 33 let concat = source.cast::<dyn Concat<String, I1 = i32, I2 = &'static str>>(); in test_cast_to_on_trait_impl_with_assoc_type3()
|
H A D | on-trait-impl-assoc-type2.rs | 14 fn concat(&self, a: Self::I1, b: Self::I2) -> String; in concat() argument 22 fn concat(&self, a: Self::I1, b: Self::I2) -> String { in concat() argument
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | utils.rs | 5 use alloc::{string::String, sync::Arc}; 44 ) -> Result<(Arc<dyn IndexNode>, String), SystemError> { in user_path_at() argument 66 ret_path = String::from(path); in user_path_at() 74 ret_path = String::from(path); in user_path_at() 86 pub struct DName(pub Arc<String>); 115 Self(Arc::new(String::new())) in default() 119 impl From<String> for DName { 120 fn from(value: String) -> Self { in from() 127 Self(Arc::from(String::from(value))) in from()
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | symlink.rs | 3 string::{String, ToString}, 27 name: String, in create_link() argument 41 pub fn remove_link(&self, _kobj: &Arc<dyn KObject>, _name: String) { in remove_link() argument 49 name: String, in do_create_link() argument 68 name: String, in do_create_link_sd() argument 100 name: String, in create_link_sd() argument
|
/DragonOS/kernel/src/libs/ |
H A D | name.rs | 3 use alloc::string::{String, ToString}; 6 pub fn get_full_type_name<T>(_: &T) -> String { in get_full_type_name() argument 10 pub fn get_type_name<T>(_: &T) -> String { in get_type_name() argument
|
/DragonOS/kernel/crates/rbpf/src/ |
H A D | no_std_error.rs | 6 use alloc::string::String; 16 error: String, 22 pub fn new<S: Into<String>>(kind: ErrorKind, error: S) -> Error { in new()
|
/DragonOS/build-scripts/kernel_build/src/kconfig/ |
H A D | mod.rs | 38 let mut cfg_content = String::new(); in make_compile_cfg() 150 name: String, 158 pub fn new(name: String, path: PathBuf, enable: bool) -> Module { in new() argument 162 pub fn name(&self) -> String { in name() argument 178 name: String, 184 pub fn new(name: String, enable: bool) -> Feature { in new() argument 188 pub fn name(&self) -> String { in name() argument
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | device_node.rs | 11 string::String, 22 full_name_allocated: Option<String>, 40 full_name_allocated: Option<String>, in new() argument 141 fn name(&self) -> String { in name() argument 145 fn set_name(&self, _name: String) {} in set_name() argument 163 name: String, 170 pub const fn new(name: String, value: Vec<u8>, battr: Option<Arc<dyn BinAttribute>>) -> Self { in new() argument
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/ |
H A D | run.rs | 18 pub runner: String, 21 pub run_args: Vec<String>, 38 let mut run_args: Vec<_> = opts.run_args.iter().map(String::as_str).collect(); in run()
|
/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | mod.rs | 4 string::String, 104 name: String::from(""), in create_root_inode() 135 children: SpinLock<HashMap<String, Arc<KernFSInode>>>, 139 name: String, 150 symlink_target_absolute_path: Option<String>, 257 fn get_entry_name(&self, ino: InodeId) -> Result<String, SystemError> { in get_entry_name() argument 271 fn get_entry_name_and_metadata(&self, ino: InodeId) -> Result<(String, Metadata), SystemError> { in get_entry_name_and_metadata() argument 301 fn list(&self) -> Result<Vec<String>, SystemError> { in list() argument 307 let mut keys: Vec<String> = Vec::new(); in list() 308 keys.push(String::from(".")); in list() [all …]
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | log.rs | 3 use alloc::string::String; 67 message: String, 71 pub fn new(timestamp: PosixTimeSpec, level: LogLevel, message: String) -> Self { in new()
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | mod.rs | 1 use alloc::{collections::LinkedList, string::String, sync::Arc}; 29 fn set_device_name(&self, name: String); in set_device_name() argument 31 fn device_name(&self) -> String; in device_name() argument
|
/DragonOS/tools/debugging/logmonitor/src/backend/ |
H A D | loader.rs | 58 pub fn add_symbol(&mut self, sym: Sym, name: String) { in add_symbol() argument 75 pub fn add_symbol(&mut self, sym: Sym, name: String) { in add_symbol() argument 92 name: String, 96 pub fn new(sym: Sym, name: String) -> Self { in new()
|
H A D | error.rs | 12 message: Option<String>, 16 pub fn new(kind: BackendErrorKind, message: Option<String>) -> Self { in new()
|
/DragonOS/kernel/src/filesystem/devpts/ |
H A D | mod.rs | 5 string::{String, ToString}, 131 children: Option<BTreeMap<String, Arc<TtyDevice>>>, 136 pub fn children_unchecked(&self) -> &BTreeMap<String, Arc<TtyDevice>> { in children_unchecked() argument 140 pub fn children_unchecked_mut(&mut self) -> &mut BTreeMap<String, Arc<TtyDevice>> { in children_unchecked_mut() argument 194 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, system_error::SystemError> { in list() argument 200 let mut keys: Vec<String> = Vec::new(); in list() 201 keys.push(String::from(".")); in list() 202 keys.push(String::from("..")); in list()
|
/DragonOS/kernel/src/driver/base/ |
H A D | kset.rs | 2 string::String, 47 pub fn new(name: String) -> Arc<Self> { in new() 74 name: String, in new_and_add() argument 194 fn name(&self) -> String { in name() argument 198 fn set_name(&self, name: String) { in set_name() argument 222 name: String, 227 fn new(name: String) -> Self { in new()
|
/DragonOS/kernel/src/arch/riscv64/init/ |
H A D | dragonstub.rs | 1 use alloc::string::String; 17 fn init_bootloader_name(&self) -> Result<Option<String>, SystemError> { in init_bootloader_name() argument
|
/DragonOS/kernel/src/driver/acpi/ |
H A D | bus.rs | 10 string::{String, ToString}, 63 fn name(&self) -> String { in name() argument 67 fn dev_name(&self) -> String { in dev_name() argument
|