storvsp

Struct StorageDevice

Source
pub struct StorageDevice { /* private fields */ }

Implementations§

Source§

impl StorageDevice

Source

pub fn build_scsi( driver_source: &VmTaskDriverSource, controller: &ScsiController, instance_id: Guid, max_sub_channel_count: u16, io_queue_depth: u32, ) -> Self

Returns a new SCSI device.

Source

pub fn build_ide( driver_source: &VmTaskDriverSource, channel_id: u8, device_id: u8, disk: ScsiControllerDisk, io_queue_depth: u32, ) -> Self

Returns a new SCSI device for implementing an IDE accelerator channel for IDE device device_id on channel channel_id.

Trait Implementations§

Source§

impl InspectMut for StorageDevice

Source§

fn inspect_mut(&mut self, req: Request<'_>)

Inspects the object.
Source§

impl SaveRestoreVmbusDevice for StorageDevice

Source§

fn save<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<SavedStateBlob, SaveError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Save the stopped device.
Source§

fn restore<'life0, 'life1, 'async_trait>( &'life0 mut self, control: RestoreControl<'life1>, state: SavedStateBlob, ) -> Pin<Box<dyn Future<Output = Result<(), RestoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Restore the stopped device. Read more
Source§

impl VmbusDevice for StorageDevice

Source§

fn offer(&self) -> OfferParams

The offer parameters.
Source§

fn max_subchannels(&self) -> u16

The maximum number of subchannels supported by this device.
Source§

fn install(&mut self, resources: DeviceResources)

Installs resources used by the device.
Source§

fn open<'life0, 'life1, 'async_trait>( &'life0 mut self, channel_index: u16, open_request: &'life1 OpenRequest, ) -> Pin<Box<dyn Future<Output = Result<(), ChannelOpenError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Opens the channel number channel_idx.
Source§

fn close<'life0, 'async_trait>( &'life0 mut self, channel_index: u16, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Closes the channel number channel_idx.
Source§

fn retarget_vp<'life0, 'async_trait>( &'life0 mut self, channel_index: u16, target_vp: u32, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Notifies the device that interrupts for channel will now target target_vp.
Source§

fn start(&mut self)

Start processing of all channels.
Source§

fn stop<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stop processing of all channels.
Source§

fn supports_save_restore(&mut self) -> Option<&mut dyn SaveRestoreVmbusDevice>

Returns a trait used to save/restore the channel. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoAny for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts into a Box<dyn Any>.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more