[−][src]Struct hermit::kernel::virtio::Virtq
Implementations
impl<'a> Virtq<'a>[src]
pub fn new_from_common(
index: u16,
common_cfg: &mut virtio_pci_common_cfg,
notify_cfg: &mut VirtioNotification
) -> Option<Self>[src]
index: u16,
common_cfg: &mut virtio_pci_common_cfg,
notify_cfg: &mut VirtioNotification
) -> Option<Self>
pub fn send_non_blocking(&mut self, index: usize, len: usize) -> Result<(), ()>[src]
pub fn send_blocking(&mut self, dat: &[&[u8]], rsp_buf: Option<&[&mut [u8]]>)[src]
pub fn check_used_elements(&mut self) -> Option<u32>[src]
pub fn add_buffer(
&mut self,
index: usize,
addr: VirtAddr,
len: usize,
flags: u16
)[src]
&mut self,
index: usize,
addr: VirtAddr,
len: usize,
flags: u16
)
pub fn set_polling_mode(&mut self, value: bool)[src]
pub fn has_packet(&self) -> bool[src]
pub fn get_available_buffer(&self) -> Result<u32, ()>[src]
pub fn get_used_buffer(&self) -> Result<(u32, u32), ()>[src]
pub fn buffer_consumed(&mut self)[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Virtq<'a>
impl<'a> !Send for Virtq<'a>
impl<'a> !Sync for Virtq<'a>
impl<'a> Unpin for Virtq<'a>
impl<'a> !UnwindSafe for Virtq<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,