pub enum UploadFilterError {
InvalidTreeMaxDepth,
UnsupportedFilter(String),
TreeDepthTooLarge {
max: u64,
actual: u64,
},
InvalidFilterSpec(String),
}Expand description
Error returned when an upload-pack filter request is not allowed by config.
Variants§
InvalidTreeMaxDepth
uploadpackfilter.tree.maxDepth exists but is not a non-negative integer.
UnsupportedFilter(String)
A requested filter kind is disabled by uploadpackfilter.*.allow.
TreeDepthTooLarge
A tree:<depth> request exceeds uploadpackfilter.tree.maxDepth.
Fields
InvalidFilterSpec(String)
The filter specification could not be parsed.
Trait Implementations§
Source§impl Debug for UploadFilterError
impl Debug for UploadFilterError
Source§impl Display for UploadFilterError
impl Display for UploadFilterError
Source§impl Error for UploadFilterError
impl Error for UploadFilterError
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()
Auto Trait Implementations§
impl Freeze for UploadFilterError
impl RefUnwindSafe for UploadFilterError
impl Send for UploadFilterError
impl Sync for UploadFilterError
impl Unpin for UploadFilterError
impl UnsafeUnpin for UploadFilterError
impl UnwindSafe for UploadFilterError
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