#[non_exhaustive]pub enum WebSocketReviewPolicyError {
Show 24 variants
EmptyPolicy,
PolicyTooLarge,
MalformedPolicy,
DuplicateJsonKey,
UnsupportedSchema,
InvalidApplicationTarget,
TargetAuthorizationRequired,
ReadOnlyAcknowledgementRequired,
NonSecretContentAcknowledgementRequired,
InvalidEndpoint,
EndpointOutsideApplication,
InsecureEndpoint,
UnsupportedOriginMode,
InvalidSubprotocol,
CompressionNotPermitted,
ReconnectNotPermitted,
InvalidMessageCount,
InvalidMessageId,
DuplicateMessageId,
MessageTextTooLarge,
MessageTextAggregateTooLarge,
InvalidExpectedResponse,
ExpectedResponseAggregateTooLarge,
InvalidLimits,
}Expand description
Static, value-free policy parsing or validation failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyPolicy
No JSON bytes were supplied.
PolicyTooLarge
Exact input bytes exceeded the compiled policy ceiling.
MalformedPolicy
JSON syntax, type, required fields, or unknown fields were invalid.
DuplicateJsonKey
A JSON object contained a duplicate decoded key.
UnsupportedSchema
The exact schema identifier is not supported.
InvalidApplicationTarget
The application target cannot provide the required authority scope.
TargetAuthorizationRequired
The operator did not assert authorization for the selected target.
ReadOnlyAcknowledgementRequired
The operator did not acknowledge that declared messages are read-only.
NonSecretContentAcknowledgementRequired
The operator did not assert that message bodies contain no secret material.
InvalidEndpoint
The absolute endpoint was malformed or contained forbidden URL parts.
EndpointOutsideApplication
The endpoint escaped the exact host, port, or application path scope.
InsecureEndpoint
Plaintext WebSocket was selected outside numeric loopback scope.
UnsupportedOriginMode
The Origin-header mode is not implemented by V1.
InvalidSubprotocol
The optional subprotocol was not one bounded HTTP token.
CompressionNotPermitted
V1 prohibits compression and all other extension negotiation.
ReconnectNotPermitted
V1 prohibits reconnects and retries.
InvalidMessageCount
V1 requires one through eight message declarations.
InvalidMessageId
A message identifier violated the bounded safe-token contract.
DuplicateMessageId
Two message declarations used the same identifier.
MessageTextTooLarge
One declared text message exceeded its compiled byte ceiling.
MessageTextAggregateTooLarge
Declared outbound text exceeded the connection-wide byte ceiling.
InvalidExpectedResponse
An expected response digest or length was invalid.
ExpectedResponseAggregateTooLarge
Expected inbound payloads exceeded the connection-wide byte ceiling.
InvalidLimits
A finite runtime limit was zero, inconsistent, or above its hard cap.
Implementations§
Trait Implementations§
Source§impl Clone for WebSocketReviewPolicyError
impl Clone for WebSocketReviewPolicyError
Source§fn clone(&self) -> WebSocketReviewPolicyError
fn clone(&self) -> WebSocketReviewPolicyError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WebSocketReviewPolicyError
Source§impl Debug for WebSocketReviewPolicyError
impl Debug for WebSocketReviewPolicyError
Source§impl Display for WebSocketReviewPolicyError
impl Display for WebSocketReviewPolicyError
impl Eq for WebSocketReviewPolicyError
Source§impl Error for WebSocketReviewPolicyError
impl Error for WebSocketReviewPolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for WebSocketReviewPolicyError
Auto Trait Implementations§
impl Freeze for WebSocketReviewPolicyError
impl RefUnwindSafe for WebSocketReviewPolicyError
impl Send for WebSocketReviewPolicyError
impl Sync for WebSocketReviewPolicyError
impl Unpin for WebSocketReviewPolicyError
impl UnsafeUnpin for WebSocketReviewPolicyError
impl UnwindSafe for WebSocketReviewPolicyError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.