pub enum IiifError {
InvalidIiifURL(String),
BadRequest(String),
Unauthorized(String),
Forbidden(String),
NotFound(String),
InternalServerError(String),
NotImplemented(String),
ServiceUnavailable(String),
}Expand description
IiifError 定义了 IIIF 相关的错误类型
Variants§
InvalidIiifURL(String)
BadRequest(String)
400 Bad Request
服务器无法满足请求,因为客户端发出的请求语法不正确。
The server cannot fulfill the request, as the syntax of the request issued by the client is incorrect.
401 Unauthorized
请求要求身份验证。未提供凭据或提供凭据但无效。
The request requires user authentication. The client must authenticate itself to get the requested response.
Forbidden(String)
403 Forbidden
用户(无论是否已认证)都不被允许执行请求的操作。
The user, authenticated or not, is not permitted to perform the requested operation.
NotFound(String)
404 Not Found
通过标识符指定的图像资源不存在,一个或多个参数的值不受此图像服务支持,或请求的尺寸大于指定的限制。
The image resource specified by identifier does not exist, the value of one or more of the parameters is not supported for this image service, or the requested size is greater than the limits specified.
InternalServerError(String)
500 Internal Server Error
服务器遇到意外错误,导致无法满足请求。
The server encountered an unexpected error that prevented it from fulfilling the request.
NotImplemented(String)
501 Not Implemented
服务器收到了一个有效的 IIIF 请求,但该请求未实现。
The server received a valid IIIF request that is not implemented.
503 Service Unavailable
服务器因负载/维护问题繁忙/暂时不可用。
The server is busy/temporarily unavailable due to load/maintenance problems.
Trait Implementations§
Source§impl Error for IiifError
impl Error for IiifError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
impl StructuralPartialEq for IiifError
Auto Trait Implementations§
impl Freeze for IiifError
impl RefUnwindSafe for IiifError
impl Send for IiifError
impl Sync for IiifError
impl Unpin for IiifError
impl UnwindSafe for IiifError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.