pub enum GitHubExpandError {
Fetch(String),
ContentTooLarge,
Http(Error),
}Expand description
Errors that can occur when expanding a GitHub permalink.
Variants§
Fetch(String)
Failed to fetch the raw file content.
ContentTooLarge
The fetched content exceeds the maximum allowed size.
Http(Error)
An HTTP error occurred.
Trait Implementations§
Source§impl Debug for GitHubExpandError
impl Debug for GitHubExpandError
Source§impl Display for GitHubExpandError
impl Display for GitHubExpandError
Source§impl Error for GitHubExpandError
impl Error for GitHubExpandError
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 GitHubExpandError
impl From<Error> for GitHubExpandError
Source§impl From<GitHubExpandError> for ExpandError
impl From<GitHubExpandError> for ExpandError
Source§fn from(source: GitHubExpandError) -> Self
fn from(source: GitHubExpandError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GitHubExpandError
impl !RefUnwindSafe for GitHubExpandError
impl Send for GitHubExpandError
impl Sync for GitHubExpandError
impl Unpin for GitHubExpandError
impl UnsafeUnpin for GitHubExpandError
impl !UnwindSafe for GitHubExpandError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.