pub struct VringState<M: GuestAddressSpace = GuestMemoryAtomic<GuestMemoryMmap>> { /* private fields */ }
Expand description

Struct to maintain raw state information for a vhost-user queue.

This struct maintains all information of a virito queue, and could be used as an VringT object for single-threaded context.

Implementations

Get an immutable reference to the underlying raw Queue object.

Get a mutable reference to the underlying raw Queue object.

Add an used descriptor into the used queue.

Notify the vhost-user master that used descriptors have been put into the used queue.

Enable event notification for queue.

Disable event notification for queue.

Check whether a notification to the guest is needed.

Set vring enabled state.

Set queue addresses for descriptor table, available ring and used ring.

Get the EventFd for kick.

Get the EventFd for call.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.