Struct vjoy_wrapper::vjoy_base::device::feeding::VJDOwnership[][src]

pub struct VJDOwnership(_);
Expand description

Holder of utility methods to manage devices acquisition and relinquishment.

Implementations

Acquire the specified device and change his state to VJDStatus::Own.
Only a device in state VJDStatus::Free can be acquired.

Returns true if acquisition was authorized, false otherwise.

Relinquish the previously acquired specified device and change his state to VJDStatus::Free.
Only a device in state VJDStatus::Own can be relinquish.

Returns true if relinquishment was authorized, false otherwise.

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

Performs the conversion.

Performs the conversion.

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.