1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// Copyright (c) 2020 Alex Chi // // This software is released under the MIT License. // https://opensource.org/licenses/MIT //! File in core-os including file in filesystem, device, pipe and symbol link pub mod device; pub use device::{Device, Console}; pub mod fsfile; pub use fsfile::FsFile; use alloc::boxed::Box; /// File in core-os pub enum File { Device(Box<dyn Device>), FsFile(FsFile), Pipe }