VhostUserBlock

Type Alias VhostUserBlock 

Source
pub type VhostUserBlock = VhostUserBlockImpl<Frontend>;

Aliased Type§

pub struct VhostUserBlock {
Show 15 fields pub avail_features: u64, pub acked_features: u64, pub config_space: Vec<u8>, pub activate_evt: EventFd, pub queues: Vec<Queue>, pub queue_evts: [EventFd; 1], pub device_state: DeviceState, pub id: String, pub partuuid: Option<String>, pub cache_type: CacheType, pub root_device: bool, pub read_only: bool, pub vu_handle: VhostUserHandleImpl<Frontend>, pub vu_acked_protocol_features: u64, pub metrics: Arc<VhostUserDeviceMetrics>,
}

Fields§

§avail_features: u64§acked_features: u64§config_space: Vec<u8>§activate_evt: EventFd§queues: Vec<Queue>§queue_evts: [EventFd; 1]§device_state: DeviceState§id: String§partuuid: Option<String>§cache_type: CacheType§root_device: bool§read_only: bool§vu_handle: VhostUserHandleImpl<Frontend>§vu_acked_protocol_features: u64§metrics: Arc<VhostUserDeviceMetrics>

Trait Implementations§

Source§

impl MutEventSubscriber for VhostUserBlock

Source§

fn process(&mut self, event: Events, ops: &mut EventOps<'_>)

Process events triggered in the event manager loop. Read more
Source§

fn init(&mut self, ops: &mut EventOps<'_>)

Initialization called by the EventManager when the subscriber is registered. Read more
Source§

impl Persist<'_> for VhostUserBlock

Source§

type State = VhostUserBlockState

The type of the object representing the state of the component.
Source§

type ConstructorArgs = BlockConstructorArgs

The type of the object holding the constructor arguments.
Source§

type Error = VhostUserBlockError

The type of the error that can occur while constructing the object.
Source§

fn save(&self) -> Self::State

Returns the current state of the component.
Source§

fn restore( _constructor_args: Self::ConstructorArgs, _state: &Self::State, ) -> Result<Self, Self::Error>

Constructs a component from a specified state.