pub enum UrlSetError {
TooManyUrls(usize),
TooMuchNews(usize),
}Expand description
An error when instantiating or generating sitemaps.
Variants§
TooManyUrls(usize)
Returned when a <urlset> contains more than 50,000 <url>.
TooMuchNews(usize)
Returned when a <urlset> contains more than 1,000 <news>.
Trait Implementations§
Source§impl Debug for UrlSetError
impl Debug for UrlSetError
Source§impl Display for UrlSetError
impl Display for UrlSetError
Source§impl Error for UrlSetError
impl Error for UrlSetError
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 UrlSetError
impl RefUnwindSafe for UrlSetError
impl Send for UrlSetError
impl Sync for UrlSetError
impl Unpin for UrlSetError
impl UnsafeUnpin for UrlSetError
impl UnwindSafe for UrlSetError
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