pub enum InvalidControlFunction {
InvalidAsciiError,
InvalidFunctionValueError,
InvalidIntermediateByteError,
InvalidPrivateUseError,
}
Expand description
Possible errors when specifying a custom control function.
It is possible to define custom control functions, so called private-use or experimental functions. These private-use functions still need to follow some rules. If they violate the rules, one of these variants is returned as an error.
Variants§
InvalidAsciiError
All control function values must be valid ASCII.
InvalidFunctionValueError
All control functions must have a one- or two-byte function identifier.
InvalidIntermediateByteError
If the function has an intermediate byte, it must by 02 / 00
. All other intermediate bytes are invalid.
InvalidPrivateUseError
All private-use functions must be in the range 07 / 00
to 07 / 15
.
Trait Implementations§
Source§impl Debug for InvalidControlFunction
impl Debug for InvalidControlFunction
Source§impl Display for InvalidControlFunction
impl Display for InvalidControlFunction
Source§impl Error for InvalidControlFunction
impl Error for InvalidControlFunction
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for InvalidControlFunction
impl RefUnwindSafe for InvalidControlFunction
impl Send for InvalidControlFunction
impl Sync for InvalidControlFunction
impl Unpin for InvalidControlFunction
impl UnwindSafe for InvalidControlFunction
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