Enum tfc::CommandBytesError
source · pub enum CommandBytesError {
InvalidCommandCode(u8),
InvalidKey(u8),
InvalidMouseButton(u8),
InvalidUnicodeScalar(u32),
InvalidUTF8,
BufferTooShort(usize),
}
Expand description
Error enum returned by Command::from_bytes
.
Variants§
InvalidCommandCode(u8)
Encountered a byte that isn’t a valid CommandCode
.
InvalidKey(u8)
Encountered a byte that isn’t a valid Key
.
InvalidMouseButton(u8)
Encountered a byte that isn’t a valid MouseButton
.
InvalidUnicodeScalar(u32)
Encountered a byte sequence that isn’t a valid Unicode scalar.
InvalidUTF8
Encountered a byte sequence that isn’t a valid UTF-8 string.
BufferTooShort(usize)
Expected the buffer to be at least this many bytes in length.
Trait Implementations§
source§impl Debug for CommandBytesError
impl Debug for CommandBytesError
source§impl Display for CommandBytesError
impl Display for CommandBytesError
source§impl Error for CommandBytesError
impl Error for CommandBytesError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for CommandBytesError
impl Send for CommandBytesError
impl Sync for CommandBytesError
impl Unpin for CommandBytesError
impl UnwindSafe for CommandBytesError
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