Enum copypasta_ext::wayland_bin::Error
source · #[non_exhaustive]
pub enum Error {
NoBinary,
BinaryIo(&'static str, IoError),
BinaryStatus(&'static str, i32),
NoUtf8(FromUtf8Error),
}
Expand description
Represents Wayland binary related error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoBinary
The wl-copy
or wl-paste
binary could not be found on the system, required for clipboard support.
BinaryIo(&'static str, IoError)
An error occurred while using wl-copy
or wl-paste
to manage the clipboard contents.
This problem probably occurred when starting, or while piping the clipboard contents
from/to the process.
BinaryStatus(&'static str, i32)
wl-copy
or wl-paste
unexpectetly exited with a non-successful status code.
NoUtf8(FromUtf8Error)
The clipboard contents could not be parsed as valid UTF-8.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()