pub enum ActorError {
BadRequest(String),
NotFound(String),
Internal(String),
Unavailable,
}Expand description
Error returned by the actor, mapped to an HTTP status by the server.
Variants§
BadRequest(String)
The request was malformed or not acceptable.
NotFound(String)
The requested resource does not exist here.
Internal(String)
The witness failed internally while handling a valid request.
The actor thread is gone (exited or crashed); the request was not handled.
Trait Implementations§
Source§impl Debug for ActorError
impl Debug for ActorError
Auto Trait Implementations§
impl Freeze for ActorError
impl RefUnwindSafe for ActorError
impl Send for ActorError
impl Sync for ActorError
impl Unpin for ActorError
impl UnsafeUnpin for ActorError
impl UnwindSafe for ActorError
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