pub enum Found<T> {
Found(T),
Gone(Option<DateTime<Utc>>),
NotFound,
Redirect(Url),
}Expand description
What a dispatcher found.
Variants§
Found(T)
Gone(Option<DateTime<Utc>>)
It existed and was deleted: served as a Tombstone with 410, with when it was deleted if that is known.
NotFound
Redirect(Url)
It is served elsewhere: answered with a 302 Found to this URL, as
Mastodon sends whoever asks for a boost to the post it boosted.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Found<T>
Auto Trait Implementations§
impl<T> Freeze for Found<T>where
T: Freeze,
impl<T> RefUnwindSafe for Found<T>where
T: RefUnwindSafe,
impl<T> Send for Found<T>where
T: Send,
impl<T> Sync for Found<T>where
T: Sync,
impl<T> Unpin for Found<T>where
T: Unpin,
impl<T> UnsafeUnpin for Found<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Found<T>where
T: UnwindSafe,
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