Enum async_dnssd::Error
[−]
[src]
pub enum Error {
KnownError(DNSServiceError),
UnknownError(i32),
}API Error
Variants
KnownError(DNSServiceError)If error code used some recognized name
UnknownError(i32)Unrecognized error codes
Methods
impl Error[src]
fn from(value: i32) -> Result<(), Error>
Check if a raw error code represents an error, and convert it
accordingly. (Not all codes are treated as an error, including
0).
Trait Implementations
impl Clone for Error[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for Error[src]
impl Eq for Error[src]
impl PartialEq for Error[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=.
impl Hash for Error[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more