pub enum DecodePositionNotificationError {
NotificationTooShort(NotificationTooShortError),
InvalidPiece {
square: Square,
value: u8,
},
}Expand description
Reports why a position notification could not be decoded.
Variants§
NotificationTooShort(NotificationTooShortError)
The notification ended before all 64 squares were available.
InvalidPiece
A square contained an unknown four-bit piece code.
Trait Implementations§
Source§impl Clone for DecodePositionNotificationError
impl Clone for DecodePositionNotificationError
Source§fn clone(&self) -> DecodePositionNotificationError
fn clone(&self) -> DecodePositionNotificationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodePositionNotificationError
impl Eq for DecodePositionNotificationError
Source§impl Error for DecodePositionNotificationError
impl Error for DecodePositionNotificationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DecodePositionNotificationError> for DecodeNotificationError
impl From<DecodePositionNotificationError> for DecodeNotificationError
Source§fn from(source: DecodePositionNotificationError) -> Self
fn from(source: DecodePositionNotificationError) -> Self
Converts to this type from the input type.
Source§impl From<NotificationTooShortError> for DecodePositionNotificationError
impl From<NotificationTooShortError> for DecodePositionNotificationError
Source§fn from(source: NotificationTooShortError) -> Self
fn from(source: NotificationTooShortError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DecodePositionNotificationError
Auto Trait Implementations§
impl Freeze for DecodePositionNotificationError
impl RefUnwindSafe for DecodePositionNotificationError
impl Send for DecodePositionNotificationError
impl Sync for DecodePositionNotificationError
impl Unpin for DecodePositionNotificationError
impl UnsafeUnpin for DecodePositionNotificationError
impl UnwindSafe for DecodePositionNotificationError
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