pub enum ServiceBrowseError {
DnsSdUnavailable(String),
ParameterContainsInteriorNulByte(String, usize),
InvalidInterfaceIndex(u32),
BrowseFailed(String),
ResolveFailed(String, String),
}Expand description
Error type for service browse / discovery failures.
Variants§
DNS-SD not available on system (Linux only - either D-Bus or Avahi unavailable).
ParameterContainsInteriorNulByte(String, usize)
A string parameter contains an interior NUL byte.
InvalidInterfaceIndex(u32)
The interface index is not valid.
BrowseFailed(String)
The browse operation failed.
ResolveFailed(String, String)
A discovered service could not be resolved to a connectable endpoint.
Trait Implementations§
Source§impl Debug for ServiceBrowseError
impl Debug for ServiceBrowseError
Source§impl Display for ServiceBrowseError
impl Display for ServiceBrowseError
Source§impl Error for ServiceBrowseError
impl Error for ServiceBrowseError
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 ServiceBrowseError
impl RefUnwindSafe for ServiceBrowseError
impl Send for ServiceBrowseError
impl Sync for ServiceBrowseError
impl Unpin for ServiceBrowseError
impl UnsafeUnpin for ServiceBrowseError
impl UnwindSafe for ServiceBrowseError
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