pub enum ClamError {
InvalidIpAddress(AddrParseError),
ConnectionError(Error),
CommandError(Error),
InvalidData(String),
IntParseError(ParseIntError),
DateParseError(ParseError),
InvalidDataLengthError(usize),
}
Expand description
ClamError
is the primary interface for all errors emitted by clam_client
.
Variants§
InvalidIpAddress(AddrParseError)
Generated when an invalid IP address is supplied to ClamClient::new(..)
ConnectionError(Error)
Generated when aClamClient
is unable to connect to the specified ClamAV socket
CommandError(Error)
Generated when the command issued cannot be sucesffully written to the ClamAV socket
InvalidData(String)
Generated when the ClamAV response cannot be parsed by clam_client::response::T
IntParseError(ParseIntError)
Generated when an integer cannot be parsed, wrapped in ClamError
for ease
DateParseError(ParseError)
Generated when a date cannot be parsed by chrono
, wrapped in ClamError
for ease
InvalidDataLengthError(usize)
Genarated when the data length written to the ClamD socket exceeds 2^32
Trait Implementations§
Source§impl Fail for ClamError
impl Fail for ClamError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreAuto Trait Implementations§
impl Freeze for ClamError
impl !RefUnwindSafe for ClamError
impl Send for ClamError
impl Sync for ClamError
impl Unpin for ClamError
impl !UnwindSafe for ClamError
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