pub enum BridgeError {
NoBridgeSpecified,
LengthError(usize, usize),
USBError(Error),
IoError(Error),
NotConnected,
InvalidAddress,
WrongResponse,
ProtocolNotSupported,
Timeout,
}Expand description
Errors that are generated while creating or using the Wishbone Bridge.
Variants§
NoBridgeSpecified
No bridge was specified (i.e. it was None)
LengthError(usize, usize)
Expected one size, but got another
USBError(Error)
USB subsystem returned an error
IoError(Error)
std::io error
NotConnected
Attempted to communicate with the bridge, but it wasn’t connected
InvalidAddress
The address or path was incorrect
WrongResponse
We got something weird back from the bridge
ProtocolNotSupported
Requested protocol is not supported on this platform
Timeout
We got nothing back from the bridge
Trait Implementations§
Source§impl Debug for BridgeError
impl Debug for BridgeError
Source§impl Display for BridgeError
impl Display for BridgeError
Source§impl From<Error> for BridgeError
impl From<Error> for BridgeError
Source§fn from(e: Error) -> BridgeError
fn from(e: Error) -> BridgeError
Converts to this type from the input type.
Source§impl From<Error> for BridgeError
impl From<Error> for BridgeError
Source§fn from(e: Error) -> BridgeError
fn from(e: Error) -> BridgeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BridgeError
impl !RefUnwindSafe for BridgeError
impl Send for BridgeError
impl Sync for BridgeError
impl Unpin for BridgeError
impl !UnwindSafe for BridgeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more