pub enum BranchOpenError {
Unsupported {
url: Url,
description: String,
vcs: Option<String>,
},
Missing {
url: Url,
description: String,
},
RateLimited {
url: Url,
description: String,
retry_after: Option<f64>,
},
Unavailable {
url: Url,
description: String,
},
TemporarilyUnavailable {
url: Url,
description: String,
},
Other(String),
}Expand description
Errors that can occur when opening a branch.
Variants§
Unsupported
The VCS is not supported.
Fields
Missing
The branch is missing.
RateLimited
The branch is rate limited.
Fields
The branch is unavailable.
The branch is temporarily unavailable.
Other(String)
An error occurred.
Implementations§
Trait Implementations§
Source§impl Debug for BranchOpenError
impl Debug for BranchOpenError
Source§impl Display for BranchOpenError
impl Display for BranchOpenError
Source§impl From<BranchOpenError> for Error
impl From<BranchOpenError> for Error
Source§fn from(e: BranchOpenError) -> Self
fn from(e: BranchOpenError) -> Self
Converts to this type from the input type.
Source§impl From<BranchOpenError> for Error
impl From<BranchOpenError> for Error
Source§fn from(e: BranchOpenError) -> Self
fn from(e: BranchOpenError) -> Self
Converts to this type from the input type.
Source§impl From<BranchOpenError> for Error
impl From<BranchOpenError> for Error
Source§fn from(e: BranchOpenError) -> Self
fn from(e: BranchOpenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BranchOpenError
impl RefUnwindSafe for BranchOpenError
impl Send for BranchOpenError
impl Sync for BranchOpenError
impl Unpin for BranchOpenError
impl UnsafeUnpin for BranchOpenError
impl UnwindSafe for BranchOpenError
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.