pub struct GuardNotConfigured;Expand description
应用没有把守卫注册进框架的状态/数据槽。
这是装配错误:代码编译得过,但启动时忘了 manage(guard) / app_data(...)。
各框架把它翻译成自己的拒绝类型,最终都是一条 500 —— 用户没做错任何事,
服务端配置漏了一步,所以不该是 4xx。
Trait Implementations§
Source§impl Clone for GuardNotConfigured
impl Clone for GuardNotConfigured
impl Copy for GuardNotConfigured
Source§impl Debug for GuardNotConfigured
impl Debug for GuardNotConfigured
Source§impl Display for GuardNotConfigured
impl Display for GuardNotConfigured
impl Eq for GuardNotConfigured
Source§impl Error for GuardNotConfigured
impl Error for GuardNotConfigured
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 GuardNotConfigured
impl PartialEq for GuardNotConfigured
impl StructuralPartialEq for GuardNotConfigured
Auto Trait Implementations§
impl Freeze for GuardNotConfigured
impl RefUnwindSafe for GuardNotConfigured
impl Send for GuardNotConfigured
impl Sync for GuardNotConfigured
impl Unpin for GuardNotConfigured
impl UnsafeUnpin for GuardNotConfigured
impl UnwindSafe for GuardNotConfigured
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