pub struct TapBackend { /* private fields */ }Expand description
TAP network backend for Linux.
Implementations§
Trait Implementations§
Source§impl Drop for TapBackend
impl Drop for TapBackend
Source§impl NetBackend for TapBackend
impl NetBackend for TapBackend
Source§fn configure_offload(&mut self, flags: NetOffloadFlags) -> Result<(), Error>
fn configure_offload(&mut self, flags: NetOffloadFlags) -> Result<(), Error>
Configure host-side offload to match the features the guest negotiated. Read more
Source§fn set_vnet_hdr_sz(&mut self, size: u32) -> Result<(), Error>
fn set_vnet_hdr_sz(&mut self, size: u32) -> Result<(), Error>
Configure the size of the
virtio_net_hdr prepended to each frame on
the backend’s wire representation. Read moreSource§fn send_tso(&mut self, packet: &NetPacket) -> Result<usize, Error>
fn send_tso(&mut self, packet: &NetPacket) -> Result<usize, Error>
Sends a TSO/GSO packet. Read more
Source§fn supports_tso(&self) -> bool
fn supports_tso(&self) -> bool
Returns whether this backend supports TSO offload. Read more
Auto Trait Implementations§
impl Freeze for TapBackend
impl RefUnwindSafe for TapBackend
impl Send for TapBackend
impl Sync for TapBackend
impl Unpin for TapBackend
impl UnsafeUnpin for TapBackend
impl UnwindSafe for TapBackend
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more