pub enum Reciever {
Ns16550MmioReciever(Ns16550Reciever<Mmio>),
Pl011Reciever(Pl011Reciever),
}Variants§
Ns16550MmioReciever(Ns16550Reciever<Mmio>)
Pl011Reciever(Pl011Reciever)
Trait Implementations§
Source§impl From<Pl011Reciever> for Reciever
impl From<Pl011Reciever> for Reciever
Source§fn from(v: Pl011Reciever) -> Reciever
fn from(v: Pl011Reciever) -> Reciever
Converts to this type from the input type.
Source§impl TReciever for Reciever
impl TReciever for Reciever
fn read_byte(&mut self) -> Option<Result<u8, TransferError>>
Source§fn read_bytes(&mut self, bytes: &mut [u8]) -> Result<usize, TransBytesError>
fn read_bytes(&mut self, bytes: &mut [u8]) -> Result<usize, TransBytesError>
Recv data into buf, return recv bytes. If return bytes is less than buf.len(), it means no more data.
Auto Trait Implementations§
impl Freeze for Reciever
impl !RefUnwindSafe for Reciever
impl Send for Reciever
impl !Sync for Reciever
impl Unpin for Reciever
impl !UnwindSafe for Reciever
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more