pub enum BodySourceError {
InvalidRange,
AlreadyConsumed,
}Expand description
Errors that can arise when converting a resolved file into a body source.
Variants§
InvalidRange
The requested byte range is invalid for the file size.
AlreadyConsumed
The resolved file has already been consumed into a body source.
Trait Implementations§
Source§impl Debug for BodySourceError
impl Debug for BodySourceError
Source§impl Display for BodySourceError
impl Display for BodySourceError
Source§impl Error for BodySourceError
impl Error for BodySourceError
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()
Source§impl From<BodySourceError> for ResolveAndPlanError
impl From<BodySourceError> for ResolveAndPlanError
Source§fn from(e: BodySourceError) -> Self
fn from(e: BodySourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BodySourceError
impl RefUnwindSafe for BodySourceError
impl Send for BodySourceError
impl Sync for BodySourceError
impl Unpin for BodySourceError
impl UnsafeUnpin for BodySourceError
impl UnwindSafe for BodySourceError
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