#[non_exhaustive]pub enum PgSearchError {
Show 14 variants
Param(ParamError),
Plan(PlanError),
Render(RenderError),
Bind(String),
ParallelGateClosed,
Sql(Error),
Decode(DecodeError),
Extension(ExtensionError),
Timeout(TimeoutStage),
ScanLimitExceeded {
max_rows: u32,
},
ExternalExecutionStrategy,
ScanQueueFull,
ExportIo(Error),
SchemaValidation(SchemaValidationError),
}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.
Param(ParamError)
Plan(PlanError)
Render(RenderError)
Bind(String)
ParallelGateClosed
Sql(Error)
Decode(DecodeError)
Extension(ExtensionError)
Timeout(TimeoutStage)
ScanLimitExceeded
ExternalExecutionStrategy
ScanQueueFull
ExportIo(Error)
SchemaValidation(SchemaValidationError)
Trait Implementations§
Source§impl Debug for PgSearchError
impl Debug for PgSearchError
Source§impl Display for PgSearchError
impl Display for PgSearchError
Source§impl Error for PgSearchError
impl Error for PgSearchError
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<DecodeError> for PgSearchError
impl From<DecodeError> for PgSearchError
Source§fn from(source: DecodeError) -> PgSearchError
fn from(source: DecodeError) -> PgSearchError
Converts to this type from the input type.
Source§impl From<Error> for PgSearchError
impl From<Error> for PgSearchError
Source§fn from(source: Error) -> PgSearchError
fn from(source: Error) -> PgSearchError
Converts to this type from the input type.
Source§impl From<ExtensionError> for PgSearchError
impl From<ExtensionError> for PgSearchError
Source§fn from(source: ExtensionError) -> PgSearchError
fn from(source: ExtensionError) -> PgSearchError
Converts to this type from the input type.
Source§impl From<ParamError> for PgSearchError
impl From<ParamError> for PgSearchError
Source§fn from(source: ParamError) -> PgSearchError
fn from(source: ParamError) -> PgSearchError
Converts to this type from the input type.
Source§impl From<PgSearchError> for PoolRouteError
impl From<PgSearchError> for PoolRouteError
Source§fn from(source: PgSearchError) -> PoolRouteError
fn from(source: PgSearchError) -> PoolRouteError
Converts to this type from the input type.
Source§impl From<PgSearchError> for WebError
impl From<PgSearchError> for WebError
Source§fn from(error: PgSearchError) -> WebError
fn from(error: PgSearchError) -> WebError
Converts to this type from the input type.
Source§impl From<PlanError> for PgSearchError
impl From<PlanError> for PgSearchError
Source§fn from(source: PlanError) -> PgSearchError
fn from(source: PlanError) -> PgSearchError
Converts to this type from the input type.
Source§impl From<RenderError> for PgSearchError
impl From<RenderError> for PgSearchError
Source§fn from(source: RenderError) -> PgSearchError
fn from(source: RenderError) -> PgSearchError
Converts to this type from the input type.
Source§impl From<SchemaValidationError> for PgSearchError
impl From<SchemaValidationError> for PgSearchError
Source§fn from(source: SchemaValidationError) -> PgSearchError
fn from(source: SchemaValidationError) -> PgSearchError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PgSearchError
impl !UnwindSafe for PgSearchError
impl Freeze for PgSearchError
impl Send for PgSearchError
impl Sync for PgSearchError
impl Unpin for PgSearchError
impl UnsafeUnpin for PgSearchError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more