pub struct BlockedUrl(pub String);Expand description
An error describing why a URL was rejected by the guard.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Debug for BlockedUrl
impl Debug for BlockedUrl
Source§impl Display for BlockedUrl
impl Display for BlockedUrl
Source§impl Error for BlockedUrl
impl Error for BlockedUrl
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()
Auto Trait Implementations§
impl Freeze for BlockedUrl
impl RefUnwindSafe for BlockedUrl
impl Send for BlockedUrl
impl Sync for BlockedUrl
impl Unpin for BlockedUrl
impl UnsafeUnpin for BlockedUrl
impl UnwindSafe for BlockedUrl
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