#[non_exhaustive]pub enum SocketPathError {
InvalidScheme,
UnixAddressEmptyPath,
TcpAddressNonEmptyPath,
HasQueryValues,
HasFragment,
HasUserInfo,
TcpEmptyHost,
TcpAddressNoIpPort,
Parse(ParseError),
}
Expand description
Errors related to the validation of a SPIFFE endpoint socket path. These cover scenarios such as invalid URI schemes, missing components, and unexpected URI structure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidScheme
The SPIFFE endpoint socket URI has a scheme other than ‘unix’ or ‘tcp’.
UnixAddressEmptyPath
The SPIFFE endpoint unix socket URI does not include a path.
TcpAddressNonEmptyPath
The SPIFFE endpoint tcp socket URI include a path.
HasQueryValues
The SPIFFE endpoint socket URI has query values.
HasFragment
The SPIFFE endpoint socket URI has a fragment.
HasUserInfo
The SPIFFE endpoint socket URI has query user info.
TcpEmptyHost
The SPIFFE endpoint tcp socket URI has misses a host.
TcpAddressNoIpPort
The SPIFFE endpoint tcp socket URI has misses a port.
Parse(ParseError)
Error returned by the URI parsing library.
Trait Implementations§
Source§impl Clone for SocketPathError
impl Clone for SocketPathError
Source§fn clone(&self) -> SocketPathError
fn clone(&self) -> SocketPathError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SocketPathError
impl Debug for SocketPathError
Source§impl Display for SocketPathError
impl Display for SocketPathError
Source§impl Error for SocketPathError
impl Error for SocketPathError
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 From<ParseError> for SocketPathError
impl From<ParseError> for SocketPathError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<SocketPathError> for GrpcClientError
impl From<SocketPathError> for GrpcClientError
Source§fn from(source: SocketPathError) -> Self
fn from(source: SocketPathError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SocketPathError
impl PartialEq for SocketPathError
impl Copy for SocketPathError
impl StructuralPartialEq for SocketPathError
Auto Trait Implementations§
impl Freeze for SocketPathError
impl RefUnwindSafe for SocketPathError
impl Send for SocketPathError
impl Sync for SocketPathError
impl Unpin for SocketPathError
impl UnwindSafe for SocketPathError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request