Enum assemblyline_client::Error
source · pub enum Error {
Client {
message: String,
status: u32,
api_version: Option<String>,
api_response: Option<String>,
},
TransportError(String),
InvalidHeader,
MalformedResponse,
InvalidSha256,
}
Expand description
Set of possible errors returned by client
Variants§
Client
Fields
An error produced by the client’s communication with the server
TransportError(String)
An error that occured during a failed communication with the server
InvalidHeader
An invalid HTTP header name or value was provided
MalformedResponse
The server’s response was truncated, corrupted, or malformed
InvalidSha256
A string could not be converted into a sha256
Trait Implementations§
source§impl From<InvalidHeaderName> for Error
impl From<InvalidHeaderName> for Error
source§fn from(_value: InvalidHeaderName) -> Self
fn from(_value: InvalidHeaderName) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
source§fn from(_value: InvalidHeaderValue) -> Self
fn from(_value: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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