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

A VringState object protected by Mutex for multi-threading context.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Type for guard returned by VringT::get_ref().

Type for guard returned by VringT::get_mut().

Create a new instance of Vring.

Get an immutable reference to the kick event fd.

Get a mutable reference to the kick event fd.

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 queue next avail head.

Set queue next avail head.

Set configured queue size.

Enable/disable queue event index feature.

Set queue enabled state.

Set EventFd for kick.

Read event from the kick EventFd.

Set EventFd for call.

Set EventFd for err.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.