pub enum BonjourError {
Show 23 variants
Unknown,
NoSuchName,
NoMemory,
BadParam,
BadReference,
BadState,
BadFlags,
Unsupported,
NotInitialized,
AlreadyRegistered,
NameConflict,
Invalid,
Firewall,
Incompatible,
BadInterfaceIndex,
Refused,
NoSuchRecord,
NoAuth,
NoSuchKey,
NATTraversal,
DoubleNAT,
BadTime,
Undefined,
}
Expand description
An error from the Bonjour API
Further information about the requirements for service parameters can be found in the Bonjour API documentation.
Variants§
Unknown
Unknown error
NoSuchName
No such name
NoMemory
Out of memory
BadParam
Bad parameter passed to function
BadReference
Bad reference
BadState
Bad state
BadFlags
Unexpected flags to function
Unsupported
Unsupported
NotInitialized
Not initialized
AlreadyRegistered
Already registered
NameConflict
Name conflicts with existing service
Invalid
Invalid index or character
Firewall
Firewall
Incompatible
Client library incompatible with daemon
BadInterfaceIndex
Interface index doesn’t exist
Refused
Refused
NoSuchRecord
No such record
NoAuth
No auth
NoSuchKey
Key does not exist in TXT record
NATTraversal
NAT traversal
DoubleNAT
More than one NAT gateway between source and destination
BadTime
Bad time
Undefined
Undefined error
Trait Implementations§
Source§impl Clone for BonjourError
impl Clone for BonjourError
Source§fn clone(&self) -> BonjourError
fn clone(&self) -> BonjourError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BonjourError
impl Debug for BonjourError
Source§impl Display for BonjourError
impl Display for BonjourError
Source§impl Error for BonjourError
impl Error for BonjourError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BonjourError> for ZeroconfError
impl From<BonjourError> for ZeroconfError
Source§fn from(s: BonjourError) -> Self
fn from(s: BonjourError) -> Self
Converts to this type from the input type.
Source§impl From<i32> for BonjourError
impl From<i32> for BonjourError
Source§fn from(err: DNSServiceErrorType) -> Self
fn from(err: DNSServiceErrorType) -> Self
Converts to this type from the input type.
Source§impl Hash for BonjourError
impl Hash for BonjourError
Source§impl PartialEq for BonjourError
impl PartialEq for BonjourError
impl Copy for BonjourError
impl Eq for BonjourError
impl StructuralPartialEq for BonjourError
Auto Trait Implementations§
impl Freeze for BonjourError
impl RefUnwindSafe for BonjourError
impl Send for BonjourError
impl Sync for BonjourError
impl Unpin for BonjourError
impl UnwindSafe for BonjourError
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