Home
last modified time | relevance | path

Searched refs:Any (Results 1 – 25 of 27) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/libs/
Dcasting.rs19 use core::any::Any;
56 pub trait DowncastArc: Any + Send + Sync {
58 fn as_any_arc(self: Arc<Self>) -> Arc<dyn Any>; in as_any_arc() argument
65 fn downcast_arc<T: Any + Send + Sync>(self: Arc<Self>) -> Option<Arc<T>> { in downcast_arc()
66 let x: Arc<dyn Any> = self.as_any_arc(); in downcast_arc()
/DragonOS-0.1.8/docs/kernel/core_api/
Dcasting.md44 …现`DowncastArc`trait。这个trait定义在`kernel/src/libs/casting.rs`中。它要求`trait U`实现`Any + Sync + Send`trait.
46 &emsp;&emsp;为`trait U: Any + Send + Sync`实现`DowncastArc`trait,需要这样做:
50 fn as_any_arc(self: Arc<Self>) -> Arc<dyn Any> {
/DragonOS-0.1.8/kernel/src/driver/
Dmod.rs15 fn as_any_ref(&'static self) -> &'static dyn core::any::Any; in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dmod.rs10 use ::core::{any::Any, fmt::Debug};
88 pub trait IndexNode: Any + Sync + Send + Debug {
319 fn as_any_ref(&self) -> &dyn Any; in as_any_ref() argument
344 fn as_any_arc(self: Arc<Self>) -> Arc<dyn Any> { in as_any_arc() argument
517 pub trait FileSystem: Any + Sync + Send + Debug {
526 fn as_any_ref(&self) -> &dyn Any; in as_any_ref() argument
Dmount.rs1 use core::any::Any;
181 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
355 fn as_any_ref(&self) -> &dyn Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/io/
Ddevice.rs4 use core::{any::Any, fmt::Debug};
26 pub trait Device: Any + Send + Sync + Debug {
51 pub trait BlockDevice: Any + Send + Sync + Debug {
92 fn as_any_ref(&self) -> &dyn Any; in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/driver/base/device/
Dmod.rs14 use core::{any::Any, fmt::Debug};
23 pub trait KObject: Any + Send + Sync + Debug {}
174 fn as_any_ref(&'static self) -> &'static dyn core::any::Any; in as_any_ref() argument
Ddriver.rs32 fn as_any_ref(&'static self) -> &'static dyn core::any::Any; in as_any_ref() argument
/DragonOS-0.1.8/docs/kernel/filesystem/
Dsysfs.md29 pub trait Device: Any + Send + Sync + Debug {}
47 pub trait Driver: Any + Send + Sync + Debug {}
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs1 use core::any::Any;
70 fn as_any_ref(&self) -> &dyn Any { in as_any_ref() argument
196 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dnull_dev.rs68 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
Dzero_dev.rs68 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
Dmod.rs33 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
339 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs232 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
376 fn as_any_ref(&'static self) -> &'static dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci_inode.rs74 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
Dahcidisk.rs440 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs170 fn as_any_ref(&'static self) -> &'static dyn core::any::Any { in as_any_ref() argument
207 fn as_any_ref(&'static self) -> &'static dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs75 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
152 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs176 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/ipc/
Dpipe.rs209 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs220 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/driver/net/
Dvirtio_net.rs240 fn as_any_ref(&'static self) -> &'static dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs231 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
438 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument
/DragonOS-0.1.8/
DREADME_EN.md70 - Any use conducive to the development and construction of DragonOS
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs2 use core::{any::Any, fmt::Debug};
239 fn as_any_ref(&self) -> &dyn Any { in as_any_ref() argument
1460 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref() argument

12