pub struct Uart {
base: usize,
}
Fields§
§base: usize
Implementations§
Trait Implementations§
Source§impl CharDevice for Uart
impl CharDevice for Uart
Source§fn write_byte(&mut self, byte: u8) -> Result<(), &'static str>
fn write_byte(&mut self, byte: u8) -> Result<(), &'static str>
Write a single byte to the device Read more
Source§impl Device for Uart
impl Device for Uart
fn device_type(&self) -> DeviceType
fn name(&self) -> &'static str
fn id(&self) -> usize
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Source§fn as_char_device(&mut self) -> Option<&mut dyn CharDevice>
fn as_char_device(&mut self) -> Option<&mut dyn CharDevice>
Cast to CharDevice if this device is a character device
Source§fn as_block_device(&mut self) -> Option<&mut dyn BlockDevice>
fn as_block_device(&mut self) -> Option<&mut dyn BlockDevice>
Cast to BlockDevice if this device is a block device
Source§impl Serial for Uart
impl Serial for Uart
Source§impl Write for Uart
impl Write for Uart
Auto Trait Implementations§
impl Freeze for Uart
impl RefUnwindSafe for Uart
impl Send for Uart
impl Sync for Uart
impl Unpin for Uart
impl UnwindSafe for Uart
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)