pub enum TransportConfigError {
Empty {
field: &'static str,
},
TooLong {
field: &'static str,
maximum: usize,
},
InvalidCharacter {
field: &'static str,
index: usize,
},
InvalidFormat {
field: &'static str,
},
OutOfRange {
field: &'static str,
minimum: u64,
maximum: u64,
},
InvalidLocalPath {
field: &'static str,
},
RefOutsideTemporaryNamespace,
}Expand description
Validation failure for a GitHub identifier or local policy value.
Variants§
Empty
A required field was empty.
TooLong
A field exceeded its byte limit.
InvalidCharacter
A byte fell outside the field allowlist.
InvalidFormat
A field did not satisfy its structural rules.
OutOfRange
A numeric value was outside its inclusive range.
Fields
InvalidLocalPath
A local executable or directory was not a usable absolute path.
RefOutsideTemporaryNamespace
A branch was outside the configured temporary-ref namespace.
Trait Implementations§
Source§impl Clone for TransportConfigError
impl Clone for TransportConfigError
impl Copy for TransportConfigError
Source§impl Debug for TransportConfigError
impl Debug for TransportConfigError
Source§impl Display for TransportConfigError
impl Display for TransportConfigError
impl Eq for TransportConfigError
Source§impl Error for TransportConfigError
impl Error for TransportConfigError
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 PartialEq for TransportConfigError
impl PartialEq for TransportConfigError
impl StructuralPartialEq for TransportConfigError
Auto Trait Implementations§
impl Freeze for TransportConfigError
impl RefUnwindSafe for TransportConfigError
impl Send for TransportConfigError
impl Sync for TransportConfigError
impl Unpin for TransportConfigError
impl UnsafeUnpin for TransportConfigError
impl UnwindSafe for TransportConfigError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.