pub enum EndpointPairPolicyError {
Empty,
TooManyPairs,
InvalidRegion,
InsecureEndpoint,
DuplicatePair,
PairMismatch,
}Expand description
Regional endpoint-pair construction or matching failure.
Variants§
Empty
A regional pair policy must contain at least one pair.
TooManyPairs
The pair set exceeds MAX_REGIONAL_ENDPOINT_PAIRS.
InvalidRegion
A region identifier is invalid.
InsecureEndpoint
API and token endpoints must both use HTTPS.
DuplicatePair
Regions and complete pairs must be unique.
PairMismatch
The supplied region, API endpoint, and token endpoint are not one pair.
Trait Implementations§
Source§impl Clone for EndpointPairPolicyError
impl Clone for EndpointPairPolicyError
Source§fn clone(&self) -> EndpointPairPolicyError
fn clone(&self) -> EndpointPairPolicyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EndpointPairPolicyError
Source§impl Debug for EndpointPairPolicyError
impl Debug for EndpointPairPolicyError
Source§impl Display for EndpointPairPolicyError
impl Display for EndpointPairPolicyError
impl Eq for EndpointPairPolicyError
Source§impl Error for EndpointPairPolicyError
impl Error for EndpointPairPolicyError
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()
Source§impl PartialEq for EndpointPairPolicyError
impl PartialEq for EndpointPairPolicyError
impl StructuralPartialEq for EndpointPairPolicyError
Auto Trait Implementations§
impl Freeze for EndpointPairPolicyError
impl RefUnwindSafe for EndpointPairPolicyError
impl Send for EndpointPairPolicyError
impl Sync for EndpointPairPolicyError
impl Unpin for EndpointPairPolicyError
impl UnsafeUnpin for EndpointPairPolicyError
impl UnwindSafe for EndpointPairPolicyError
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