#[non_exhaustive]pub enum HookConfigError {
SignerRequired,
UnsignedOrigin,
ChannelAudience,
Audience(&'static str),
}Expand description
A refused adapter configuration.
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.
SignerRequired
A channel that is not an isolated service binding must sign (SPEC-SERVER §7.1 versus §7.3).
UnsignedOrigin
An unsigned channel is a service binding, which has no origin.
ChannelAudience
Signing binds the hook endpoint’s canonical origin, so the channel must name one.
Audience(&'static str)
The named origin is not a canonical HTTP(S) origin, or is plain HTTP to a host that is not loopback (SPEC-SERVER §6.1).
Trait Implementations§
Source§impl Clone for HookConfigError
impl Clone for HookConfigError
Source§impl Debug for HookConfigError
impl Debug for HookConfigError
Source§impl Display for HookConfigError
impl Display for HookConfigError
impl Eq for HookConfigError
Source§impl Error for HookConfigError
impl Error for HookConfigError
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 HookConfigError
impl PartialEq for HookConfigError
impl StructuralPartialEq for HookConfigError
Auto Trait Implementations§
impl Freeze for HookConfigError
impl RefUnwindSafe for HookConfigError
impl Send for HookConfigError
impl Sync for HookConfigError
impl Unpin for HookConfigError
impl UnsafeUnpin for HookConfigError
impl UnwindSafe for HookConfigError
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