pub enum ServiceRegistrationError {
InvalidTxtRecordKey(String, String),
InvalidTxtRecordValue(String, String),
ParameterContainsInteriorNulByte(String, usize),
InvalidInterfaceIndex(u32),
HostnameUnavailable(String),
DnsSdUnavailable(String),
RegistrationError(String),
RegistrationFailed(String),
NameConflict,
}Expand description
Error type for service registration failures.
Variants§
InvalidTxtRecordKey(String, String)
A TXT record key is invalid (empty, contains ‘=’, or has non-ASCII characters).
InvalidTxtRecordValue(String, String)
A TXT record value is too large (key + value exceeds 255 bytes).
ParameterContainsInteriorNulByte(String, usize)
A string parameter contains an interior NUL byte.
InvalidInterfaceIndex(u32)
The interface index is not valid.
The hostname could not be determined automatically.
DNS-SD not available on system (Linux only - either D-Bus or Avahi unavailable).
RegistrationError(String)
The native DNS-SD API returned an error.
RegistrationFailed(String)
The registration failed.
NameConflict
A service name conflict was detected.
Trait Implementations§
Source§impl Debug for ServiceRegistrationError
impl Debug for ServiceRegistrationError
Source§impl Display for ServiceRegistrationError
impl Display for ServiceRegistrationError
Source§impl Error for ServiceRegistrationError
impl Error for ServiceRegistrationError
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()
Auto Trait Implementations§
impl Freeze for ServiceRegistrationError
impl RefUnwindSafe for ServiceRegistrationError
impl Send for ServiceRegistrationError
impl Sync for ServiceRegistrationError
impl Unpin for ServiceRegistrationError
impl UnsafeUnpin for ServiceRegistrationError
impl UnwindSafe for ServiceRegistrationError
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