pub enum HapError {
Show 14 variants
EntityNotFound(String),
UnmappableEntity {
entity_id: String,
reason: String,
},
AlreadyRegistered(String),
MdnsError(String),
NotRunning,
PairingStore(String),
InvalidPairingRecord(String),
PairingAlreadyExists(String),
PairingNotFound(String),
PairingCapacity,
InsecurePermissions {
path: PathBuf,
mode: u32,
},
InvalidSessionTransition {
from: &'static str,
to: &'static str,
},
Protocol(String),
Server(String),
}Expand description
Errors produced by the HAP bridge and its sub-components.
Variants§
EntityNotFound(String)
UnmappableEntity
AlreadyRegistered(String)
MdnsError(String)
NotRunning
PairingStore(String)
InvalidPairingRecord(String)
PairingAlreadyExists(String)
PairingNotFound(String)
PairingCapacity
InsecurePermissions
InvalidSessionTransition
Protocol(String)
Server(String)
Trait Implementations§
Source§impl Error for HapError
impl Error for HapError
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 HapError
impl RefUnwindSafe for HapError
impl Send for HapError
impl Sync for HapError
impl Unpin for HapError
impl UnsafeUnpin for HapError
impl UnwindSafe for HapError
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