pub enum ExtractorError {
LimitExceeded(ExtractionLimitExceeded),
InputTooLarge {
actual: usize,
maximum: usize,
},
InvalidUtf8(Utf8Error),
InvalidOutput(Error),
InvalidInput(String),
}Expand description
Failure returned by focused boundary extractors.
Variants§
LimitExceeded(ExtractionLimitExceeded)
Extraction exceeded one configured invocation resource.
InputTooLarge
Input exceeds the documented extraction budget.
InvalidUtf8(Utf8Error)
Source bytes are not valid for a text extractor.
InvalidOutput(Error)
Structured output could not be encoded.
InvalidInput(String)
Extractor-specific failure with a bounded, non-sensitive explanation.
Trait Implementations§
Source§impl Debug for ExtractorError
impl Debug for ExtractorError
Source§impl Display for ExtractorError
impl Display for ExtractorError
Source§impl Error for ExtractorError
impl Error for ExtractorError
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<Error> for ExtractorError
impl From<Error> for ExtractorError
Source§impl From<ExtractionLimitExceeded> for ExtractorError
impl From<ExtractionLimitExceeded> for ExtractorError
Source§fn from(source: ExtractionLimitExceeded) -> Self
fn from(source: ExtractionLimitExceeded) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ExtractorError
impl !UnwindSafe for ExtractorError
impl Freeze for ExtractorError
impl Send for ExtractorError
impl Sync for ExtractorError
impl Unpin for ExtractorError
impl UnsafeUnpin for ExtractorError
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