pub struct PendingBuffer {
pub buffer: Box<[u8; 65562]>,
pub length: u32,
}Fields§
§buffer: Box<[u8; 65562]>According to virtio-spec, the maximum incoming packet will be to 65550 bytes long (the maximum size of a TCP or UDP packet, plus the 14 byte ethernet header) The 12byte struct virtio_net_hdr is prepended to this, therefore making it for 65562
length: u32Implementations§
Source§impl PendingBuffer
impl PendingBuffer
Auto Trait Implementations§
impl Freeze for PendingBuffer
impl RefUnwindSafe for PendingBuffer
impl Send for PendingBuffer
impl Sync for PendingBuffer
impl Unpin for PendingBuffer
impl UnwindSafe for PendingBuffer
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