pub enum HeliosError {
Show 13 variants NotInitialized, InvalidDevNum, NullPoints, TooManyPoints, PPSTooHigh, PPSTooLow, DeviceClosed, DeviceFrameReady, DeviceSendControl, DeviceResult, DeviceNullBuffer, DeviceSignalTooLong, Libusb,
}

Variants§

§

NotInitialized

Attempted to perform an action before calling OpenDevices()

§

InvalidDevNum

Attempted to perform an action with an invalid device number

§

NullPoints

write_frame called with null pointer to points

§

TooManyPoints

write_frame called with a frame containing too many points

§

PPSTooHigh

write_frame called with pps higher than maximum allowed

§

PPSTooLow

write_frame called with pps lower than minimum allowed

§

DeviceClosed

Attempted to perform an operation on a closed DAC device

§

DeviceFrameReady

Attempted to send a new frame with HELIOS_FLAGS_DONT_BLOCK before previous DoFrame() completed

§

DeviceSendControl

Operation failed because SendControl() failed (if operation failed because of libusb_interrupt_transfer failure, the error code will be a libusb error instead)

§

DeviceResult

Received an unexpected result from a call to SendControl()

§

DeviceNullBuffer

Attempted to call SendControl() with a null buffer pointer

§

DeviceSignalTooLong

Attempted to call SendControl() with a control signal that is too long

§

Libusb

Errors from libusb are the libusb error code added to -5000.

Trait Implementations§

Formats the value using the given formatter. Read more

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.