pub struct StdConsole(u8);
Expand description
标准输入输出接口
Tuple Fields§
§0: u8
Implementations§
Source§impl StdConsole
impl StdConsole
Trait Implementations§
Source§impl INodeInterface for StdConsole
impl INodeInterface for StdConsole
fn readat(&self, _offset: usize, buffer: &mut [u8]) -> VfsResult<usize>
fn writeat(&self, _offset: usize, buffer: &[u8]) -> VfsResult<usize>
fn stat(&self, stat: &mut Stat) -> VfsResult<()>
fn create(&self, _name: &str, _ty: FileType) -> Result<(), Errno>
fn mkdir(&self, _name: &str) -> Result<(), Errno>
fn rmdir(&self, _name: &str) -> Result<(), Errno>
fn remove(&self, _name: &str) -> Result<(), Errno>
fn read_dir(&self) -> Result<Vec<DirEntry>, Errno>
fn lookup(&self, _name: &str) -> Result<Arc<dyn INodeInterface>, Errno>
fn ioctl(&self, _command: usize, _arg: usize) -> Result<usize, Errno>
fn truncate(&self, _size: usize) -> Result<(), Errno>
fn flush(&self) -> Result<(), Errno>
fn resolve_link(&self) -> Result<String, Errno>
fn link(&self, _name: &str, _src: Arc<dyn INodeInterface>) -> Result<(), Errno>
fn symlink(&self, _name: &str, _src: &str) -> Result<(), Errno>
fn unlink(&self, _name: &str) -> Result<(), Errno>
fn mount(&self, _path: &str) -> Result<(), Errno>
fn umount(&self) -> Result<(), Errno>
fn statfs(&self, _statfs: &mut StatFS) -> Result<(), Errno>
fn utimes(&self, _times: &mut [TimeSpec]) -> Result<(), Errno>
fn poll(&self, _events: PollEvent) -> Result<PollEvent, Errno>
Auto Trait Implementations§
impl Freeze for StdConsole
impl RefUnwindSafe for StdConsole
impl Send for StdConsole
impl Sync for StdConsole
impl Unpin for StdConsole
impl UnwindSafe for StdConsole
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for Twhere
T: Any + Send,
impl<T> DowncastSend for Twhere
T: Any + Send,
Source§fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>
fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>
Converts
Box<Trait>
(where Trait: DowncastSend
) to Box<dyn Any + Send>
, which
can then be downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§impl<T> DowncastSync for Twhere
T: Any + Send + Sync,
impl<T> DowncastSync for Twhere
T: Any + Send + Sync,
Source§fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>
Converts
Box<Trait>
(where Trait: DowncastSync
) to Box<dyn Any + Send + Sync>
,
which can then be downcast
into Box<ConcreteType>
where ConcreteType
implements
Trait
.Source§fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
Converts
Arc<Trait>
(where Trait: DowncastSync
) to Arc<Any>
, which can then be
downcast
into Arc<ConcreteType>
where ConcreteType
implements Trait
.