[−][src]Enum jaylink::ErrorKind
List of specific errors that may occur when using this library.
Variants
A USB transport error occurred.
This variant is used for all errors reported by the operating system when performing a USB operation. It may indicate that the USB device was unplugged, that another application or an operating system driver is currently using it, or that the current user does not have permission to access it.
No (matching) J-Link device was found.
This error occurs when calling JayLink::open_by_serial
while no J-Link device is connected
(or no device matching the serial number is connected).
Automatic device connection failed because multiple devices were found.
This error occurs when calling JayLink::open_by_serial
without a serial number while
multiple J-Link devices are connected. This library will refuse to "guess" a device and
requires specifying a serial number in this case. The scan_usb
function can also be used
to find a specific device to connect to.
A operation was attempted that is not supported by the probe.
Some operations are not supported by all firmware/hardware versions, and are instead advertised as optional capability bits. This error occurs when the capability bit for an operation isn't set when that operation is attempted.
Capabilities can be read by calling JayLink::read_capabilities
, which returns a
Capabilities
bitflags struct.
An unspecified error occurred.
Trait Implementations
impl Clone for ErrorKind
[src]
impl Copy for ErrorKind
[src]
impl Eq for ErrorKind
[src]
impl PartialEq<ErrorKind> for ErrorKind
[src]
impl Debug for ErrorKind
[src]
impl StructuralPartialEq for ErrorKind
[src]
impl StructuralEq for ErrorKind
[src]
Auto Trait Implementations
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
impl RefUnwindSafe for ErrorKind
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,