pub enum SingBoxControllerConfigurationError {
InvalidJson,
ClashApiDisabled,
InvalidExternalController,
ExternalControllerNotLoopback,
ExternalControllerHasEphemeralPort,
InvalidSecret,
}Expand description
Why the controller configuration of a sing-box profile was rejected.
Variants§
InvalidJson
The profile is not valid JSON.
ClashApiDisabled
The profile does not enable the experimental Clash API.
InvalidExternalController
The external controller is not a socket address.
ExternalControllerNotLoopback
The external controller does not bind to loopback.
ExternalControllerHasEphemeralPort
The external controller uses the ephemeral port zero.
InvalidSecret
The Clash API secret is not a string.
Trait Implementations§
impl Eq for SingBoxControllerConfigurationError
Source§impl Error for SingBoxControllerConfigurationError
impl Error for SingBoxControllerConfigurationError
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()
impl StructuralPartialEq for SingBoxControllerConfigurationError
Auto Trait Implementations§
impl Forget for SingBoxControllerConfigurationError
impl Freeze for SingBoxControllerConfigurationError
impl Move for SingBoxControllerConfigurationError
impl RefUnwindSafe for SingBoxControllerConfigurationError
impl Send for SingBoxControllerConfigurationError
impl Sync for SingBoxControllerConfigurationError
impl Unpin for SingBoxControllerConfigurationError
impl UnsafeUnpin for SingBoxControllerConfigurationError
impl UnwindSafe for SingBoxControllerConfigurationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.