/DragonOS/kernel/crates/unified-init/macros/src/ |
H A D | lib.rs | 84 return Err(syn::Error::new( in check_function_signature() 104 return Err(syn::Error::new( in check_function_signature() 115 return Err(syn::Error::new(tuple.span(), "Expected empty tuple")); in check_function_signature() 118 return Err(syn::Error::new(type_arg.span(), "Expected empty tuple")); in check_function_signature() 121 return Err(syn::Error::new( in check_function_signature() 137 return Err(syn::Error::new( in check_function_signature() 143 return Err(syn::Error::new( in check_function_signature() 154 Err(syn::Error::new( in check_function_signature() 197 return Err(parse::Error::new( in parse() 212 return Err(parse::Error::new( in parse() [all …]
|
/DragonOS/kernel/src/process/ |
H A D | resource.rs | 64 type Error = SystemError; typedef 66 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument 133 type Error = SystemError; typedef 135 fn try_from(value: usize) -> Result<Self, Self::Error> { in try_from() argument
|
H A D | abi.rs | 55 type Error = &'static str; typedef 57 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/user/apps/test_socket/src/ |
H A D | test_unix_stream_pair.rs | 1 use std::io::{Error, Read, Write}; 19 Err(Error::from_raw_os_error(-1)) in test_unix_stream_pair()
|
H A D | test_unix_stream.rs | 1 use std::io::{Error, Read, Write}; 40 Err(Error::from_raw_os_error(-1)) in test_unix_stream()
|
/DragonOS/tools/debugging/logmonitor/src/backend/ |
H A D | error.rs | 1 use std::{error::Error, fmt::Display}; 21 impl Error for BackendError {}
|
/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | args.rs | 5 use syn::{Error, Ident, Path, Token, Type}; 18 Err(Error::new_spanned(ident, msg)) in from() 44 return Err(Error::new_spanned(ident, msg)); in parse()
|
/DragonOS/kernel/src/arch/x86_64/init/ |
H A D | boot.rs | 22 type Error = SystemError; typedef 24 fn try_from(value: u64) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | disk_info.rs | 56 type Error = SystemError; typedef 58 fn try_into(self) -> Result<GeneralBlockRange, Self::Error> { in try_into() argument
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | fdt.rs | 77 type Error = SystemError; typedef 79 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/src/libs/ |
H A D | printk.rs | 121 Level::Error => { in iodisplay() 150 Level::Error => Logger.log( in kernel_log()
|
/DragonOS/kernel/src/time/ |
H A D | syscall.rs | 60 type Error = SystemError; typedef 62 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | transport_pci.rs | 28 Error, Hal, PhysAddr, 374 fn config_space<T>(&self) -> Result<NonNull<T>, Error> { in config_space() argument 377 Err(Error::ConfigSpaceTooSmall) in config_space() 390 Err(Error::ConfigSpaceMissing) in config_space()
|
/DragonOS/kernel/src/ipc/ |
H A D | signal_types.rs | 146 Error, // 暂时没有用上 enumerator 155 SaHandlerType::Error => 2, in from() 182 matches!(self, Self::Error) in is_sig_error()
|
/DragonOS/kernel/src/net/ |
H A D | syscall.rs | 810 type Error = SystemError; typedef 812 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() argument 931 type Error = SystemError; typedef 933 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument 1020 type Error = SystemError; typedef 1022 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | apic_timer.rs | 287 type Error = SystemError; typedef 289 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() argument
|
H A D | mod.rs | 388 type Error = SystemError; typedef 390 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/src/net/socket/ |
H A D | mod.rs | 749 type Error = SystemError; typedef 750 fn try_from(x: u16) -> Result<Self, Self::Error> { in try_from() argument 769 type Error = SystemError; typedef 770 fn try_from(x: u8) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | app.rs | 7 pub type AppResult<T> = std::result::Result<T, Box<dyn error::Error>>;
|
/DragonOS/kernel/src/arch/x86_64/ipc/ |
H A D | signal.rs | 464 SaHandlerType::Error => { in do_signal()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | pci.rs | 1174 type Error = PciError; typedef 1175 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/src/mm/ |
H A D | page.rs | 3 fmt::{self, Debug, Error, Formatter}, 682 fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error> { in fmt() argument
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 547 Err(virtio_drivers::Error::NotReady) => None, in receive()
|