pub enum VirtioNetRequest {
ConfigureQueue {
queue: u16,
size: u16,
desc: u64,
avail: u64,
used: u64,
responder: VirtioNetConfigureQueueResponder,
},
NotifyQueue {
queue: u16,
control_handle: VirtioNetControlHandle,
},
Ready {
negotiated_features: u32,
responder: VirtioNetReadyResponder,
},
Start {
start_info: StartInfo,
mac_address: MacAddress,
enable_bridge: bool,
responder: VirtioNetStartResponder,
},
}
Variants§
ConfigureQueue
Configure a queue
for the device. This specifies the size
and the
guest physical addresses of the queue: desc
, avail
, and used
.
Fields
§
responder: VirtioNetConfigureQueueResponder
NotifyQueue
Notify a queue
for the device. Primarily used for black-box testing.
Ready
Ready a device. This provides the set of negotiated_features
that the
driver and device have agreed upon.
Start
Start the net device.
Implementations§
Source§impl VirtioNetRequest
impl VirtioNetRequest
pub fn into_configure_queue( self, ) -> Option<(u16, u16, u64, u64, u64, VirtioNetConfigureQueueResponder)>
pub fn into_notify_queue(self) -> Option<(u16, VirtioNetControlHandle)>
pub fn into_ready(self) -> Option<(u32, VirtioNetReadyResponder)>
pub fn into_start( self, ) -> Option<(StartInfo, MacAddress, bool, VirtioNetStartResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VirtioNetRequest
impl !RefUnwindSafe for VirtioNetRequest
impl Send for VirtioNetRequest
impl Sync for VirtioNetRequest
impl Unpin for VirtioNetRequest
impl !UnwindSafe for VirtioNetRequest
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