pub enum ParseObjectNameError {
InvalidHex(FromHexError),
InvalidUtf8(FromUtf8Error),
IllegalChar(char),
InvalidLength,
}Expand description
Object name parse errors.
Variants§
InvalidHex(FromHexError)
Hexadecimal parse error.
InvalidUtf8(FromUtf8Error)
Invalid unicode.
IllegalChar(char)
Some characters, such as the newline (\n), are banned in
object names.
InvalidLength
The object name must be between 1 and 1024 characters long.
Trait Implementations§
Source§impl Debug for ParseObjectNameError
impl Debug for ParseObjectNameError
Source§impl Display for ParseObjectNameError
impl Display for ParseObjectNameError
Source§impl Error for ParseObjectNameError
impl Error for ParseObjectNameError
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<FromHexError> for ParseObjectNameError
impl From<FromHexError> for ParseObjectNameError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for ParseObjectNameError
impl From<FromUtf8Error> for ParseObjectNameError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseObjectNameError> for Error
impl From<ParseObjectNameError> for Error
Source§fn from(source: ParseObjectNameError) -> Self
fn from(source: ParseObjectNameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseObjectNameError
impl RefUnwindSafe for ParseObjectNameError
impl Send for ParseObjectNameError
impl Sync for ParseObjectNameError
impl Unpin for ParseObjectNameError
impl UnwindSafe for ParseObjectNameError
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