pub enum RealIpError {
Show 15 variants
Config {
message: String,
},
UnknownProviderKind {
name: String,
kind: String,
},
MissingProviderFactory {
kind: String,
},
DuplicateProviderFactory {
kind: String,
},
MissingProviderField {
provider: String,
field: &'static str,
},
UnknownSourceProvider {
source_name: String,
provider: String,
},
ReadProviderFile {
path: PathBuf,
source: Error,
},
ProviderCommand {
command: String,
details: String,
},
ProviderHttp {
url: String,
source: Error,
},
WatchProvider {
path: PathBuf,
details: String,
},
EmptyProviderOutput {
provider: String,
},
InvalidProviderEntry {
provider: String,
entry: String,
},
ProviderLoad {
provider: String,
details: String,
},
AccessConfig {
message: String,
},
AccessDenied {
client_ip: IpAddr,
reason: String,
},
}Variants§
Config
UnknownProviderKind
MissingProviderFactory
DuplicateProviderFactory
MissingProviderField
UnknownSourceProvider
ReadProviderFile
ProviderCommand
ProviderHttp
WatchProvider
EmptyProviderOutput
InvalidProviderEntry
ProviderLoad
AccessConfig
AccessDenied
Trait Implementations§
Source§impl Debug for RealIpError
impl Debug for RealIpError
Source§impl Display for RealIpError
impl Display for RealIpError
Source§impl Error for RealIpError
impl Error for RealIpError
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 ErrorCompat for RealIpError
impl ErrorCompat for RealIpError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl<__T0> IntoError<RealIpError> for AccessConfigSnafu<__T0>
impl<__T0> IntoError<RealIpError> for AccessConfigSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RealIpError> for AccessDeniedSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RealIpError> for AccessDeniedSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0> IntoError<RealIpError> for ConfigSnafu<__T0>
impl<__T0> IntoError<RealIpError> for ConfigSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0> IntoError<RealIpError> for DuplicateProviderFactorySnafu<__T0>
impl<__T0> IntoError<RealIpError> for DuplicateProviderFactorySnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0> IntoError<RealIpError> for EmptyProviderOutputSnafu<__T0>
impl<__T0> IntoError<RealIpError> for EmptyProviderOutputSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RealIpError> for InvalidProviderEntrySnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RealIpError> for InvalidProviderEntrySnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0> IntoError<RealIpError> for MissingProviderFactorySnafu<__T0>
impl<__T0> IntoError<RealIpError> for MissingProviderFactorySnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RealIpError> for MissingProviderFieldSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RealIpError> for MissingProviderFieldSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RealIpError> for ProviderCommandSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RealIpError> for ProviderCommandSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0> IntoError<RealIpError> for ProviderHttpSnafu<__T0>
impl<__T0> IntoError<RealIpError> for ProviderHttpSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RealIpError> for ProviderLoadSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RealIpError> for ProviderLoadSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0> IntoError<RealIpError> for ReadProviderFileSnafu<__T0>
impl<__T0> IntoError<RealIpError> for ReadProviderFileSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RealIpError> for UnknownProviderKindSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RealIpError> for UnknownProviderKindSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RealIpError> for UnknownSourceProviderSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RealIpError> for UnknownSourceProviderSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RealIpError> for WatchProviderSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RealIpError> for WatchProviderSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RealIpError
fn into_error(self, error: Self::Source) -> RealIpError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for RealIpError
impl !RefUnwindSafe for RealIpError
impl Send for RealIpError
impl Sync for RealIpError
impl Unpin for RealIpError
impl UnsafeUnpin for RealIpError
impl !UnwindSafe for RealIpError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.