pub enum PortError {
InvalidMessage,
PortInactive,
HardwareError,
OutOfMemory,
Generic,
}Expand description
Error handling for port operations
Variants§
InvalidMessage
Invalid message format
PortInactive
Port not active
HardwareError
Hardware error
OutOfMemory
Out of memory
Generic
Generic error
Trait Implementations§
Source§impl From<PortError> for PortResult
impl From<PortError> for PortResult
impl Copy for PortError
Auto Trait Implementations§
impl Freeze for PortError
impl RefUnwindSafe for PortError
impl Send for PortError
impl Sync for PortError
impl Unpin for PortError
impl UnwindSafe for PortError
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