Enum cosworth::prelude::ReadlinesError
source · pub enum ReadlinesError {
EncodingError,
PayloadError(PayloadError),
LimitOverflow,
ContentTypeError(ContentTypeError),
}
Expand description
Error type returned when reading body as lines.
Variants§
EncodingError
Error when decoding a line.
PayloadError(PayloadError)
Payload error.
LimitOverflow
Line limit exceeded.
ContentTypeError(ContentTypeError)
ContentType error.
Trait Implementations§
source§impl From<ContentTypeError> for ReadlinesError
impl From<ContentTypeError> for ReadlinesError
source§fn from(err: ContentTypeError) -> ReadlinesError
fn from(err: ContentTypeError) -> ReadlinesError
Converts to this type from the input type.
source§impl From<PayloadError> for ReadlinesError
impl From<PayloadError> for ReadlinesError
source§fn from(err: PayloadError) -> ReadlinesError
fn from(err: PayloadError) -> ReadlinesError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadlinesError
impl Send for ReadlinesError
impl Sync for ReadlinesError
impl Unpin for ReadlinesError
impl !UnwindSafe for ReadlinesError
Blanket Implementations§
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more