Home
last modified time | relevance | path

Searched refs:Error (Results 1 – 23 of 23) sorted by relevance

/DragonOS/kernel/crates/unified-init/macros/src/
H A Dlib.rs84 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 Dresource.rs64 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 Dabi.rs55 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 Dtest_unix_stream_pair.rs1 use std::io::{Error, Read, Write};
19 Err(Error::from_raw_os_error(-1)) in test_unix_stream_pair()
H A Dtest_unix_stream.rs1 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 Derror.rs1 use std::{error::Error, fmt::Display};
21 impl Error for BackendError {}
/DragonOS/kernel/crates/intertrait/macros/src/
H A Dargs.rs5 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 Dboot.rs22 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 Ddisk_info.rs56 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 Dfdt.rs77 type Error = SystemError; typedef
79 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/libs/
H A Dprintk.rs121 Level::Error => { in iodisplay()
150 Level::Error => Logger.log( in kernel_log()
/DragonOS/kernel/src/time/
H A Dsyscall.rs60 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 Dtransport_pci.rs28 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 Dsignal_types.rs146 Error, // 暂时没有用上 enumerator
155 SaHandlerType::Error => 2, in from()
182 matches!(self, Self::Error) in is_sig_error()
/DragonOS/kernel/src/net/
H A Dsyscall.rs810 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 Dapic_timer.rs287 type Error = SystemError; typedef
289 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() argument
H A Dmod.rs388 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 Dmod.rs749 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 Dapp.rs7 pub type AppResult<T> = std::result::Result<T, Box<dyn error::Error>>;
/DragonOS/kernel/src/arch/x86_64/ipc/
H A Dsignal.rs464 SaHandlerType::Error => { in do_signal()
/DragonOS/kernel/src/driver/pci/
H A Dpci.rs1174 type Error = PciError; typedef
1175 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/mm/
H A Dpage.rs3 fmt::{self, Debug, Error, Formatter},
682 fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error> { in fmt() argument
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs547 Err(virtio_drivers::Error::NotReady) => None, in receive()