#[non_exhaustive]pub enum ResourceErrorKind {
}Expand description
The specific rule a resource broke.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
Nothing but whitespace, or nothing at all.
TooLong
Longer than MAX_RESOURCE_LEN.
Whitespace
Contains whitespace or a control character.
NonAscii
Contains a non-ASCII character (hosts must be given in punycode).
HasScheme
Starts with a URL scheme such as https://.
MissingForgeHost
The first segment is not a forge host — the owner/repo form.
InvalidHost
The first segment looks like a host but is not a valid one.
HasPort
A host with a :port. Resources name a forge by host alone.
MissingOwner
Only a host, with no owner after it.
EmptySegment
Two slashes in a row, or a leading/trailing slash.
DotSegment
A . or .. segment.
InvalidCharacter(char)
A character outside [a-z0-9._-] in a path segment.
TooManySegments
More path segments than the forge allows.
Trait Implementations§
Source§impl Clone for ResourceErrorKind
impl Clone for ResourceErrorKind
Source§impl Debug for ResourceErrorKind
impl Debug for ResourceErrorKind
impl Eq for ResourceErrorKind
Source§impl PartialEq for ResourceErrorKind
impl PartialEq for ResourceErrorKind
impl StructuralPartialEq for ResourceErrorKind
Auto Trait Implementations§
impl Freeze for ResourceErrorKind
impl RefUnwindSafe for ResourceErrorKind
impl Send for ResourceErrorKind
impl Sync for ResourceErrorKind
impl Unpin for ResourceErrorKind
impl UnsafeUnpin for ResourceErrorKind
impl UnwindSafe for ResourceErrorKind
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