Enum golem_client::worker::WorkerError
source · pub enum WorkerError {
RequestFailure(Error),
InvalidHeaderValue(InvalidHeaderValue),
UnexpectedStatus(StatusCode),
Status504,
Status404 {
error: String,
},
Status403 {
error: String,
},
Status400 {
errors: Vec<String>,
},
Status500 {
golem_error: GolemError,
},
Status401 {
error: String,
},
Status409 {
error: String,
},
}
Variants§
RequestFailure(Error)
InvalidHeaderValue(InvalidHeaderValue)
UnexpectedStatus(StatusCode)
Status504
Status404
Status403
Status400
Status500
Fields
§
golem_error: GolemError
Status401
Status409
Implementations§
source§impl WorkerError
impl WorkerError
pub fn to_worker_endpoint_error(&self) -> Option<WorkerEndpointError>
Trait Implementations§
source§impl Debug for WorkerError
impl Debug for WorkerError
source§impl From<Error> for WorkerError
impl From<Error> for WorkerError
source§fn from(error: Error) -> WorkerError
fn from(error: Error) -> WorkerError
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for WorkerError
impl From<InvalidHeaderValue> for WorkerError
source§fn from(error: InvalidHeaderValue) -> WorkerError
fn from(error: InvalidHeaderValue) -> WorkerError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WorkerError
impl Send for WorkerError
impl Sync for WorkerError
impl Unpin for WorkerError
impl !UnwindSafe for WorkerError
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