pub enum RespondError<T> {
Unknown(T),
NoSpace(T),
NoCallback(T),
}
Expand description
Errors potentially generated by the
ResponseHandler::respond
method
Variants§
Unknown(T)
Unknown or general error
NoSpace(T)
Failure due to a lack of space
NoCallback(T)
No response callback was provided by the host
This can only happen with faulty host
Trait Implementations§
Source§impl<T: Clone> Clone for RespondError<T>
impl<T: Clone> Clone for RespondError<T>
Source§fn clone(&self) -> RespondError<T>
fn clone(&self) -> RespondError<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for RespondError<T>
impl<T> Debug for RespondError<T>
Source§impl<T> Display for RespondError<T>
impl<T> Display for RespondError<T>
Source§impl<T: PartialEq> PartialEq for RespondError<T>
impl<T: PartialEq> PartialEq for RespondError<T>
impl<T: Copy> Copy for RespondError<T>
impl<T: Eq> Eq for RespondError<T>
impl<T> StructuralPartialEq for RespondError<T>
Auto Trait Implementations§
impl<T> Freeze for RespondError<T>where
T: Freeze,
impl<T> RefUnwindSafe for RespondError<T>where
T: RefUnwindSafe,
impl<T> Send for RespondError<T>where
T: Send,
impl<T> Sync for RespondError<T>where
T: Sync,
impl<T> Unpin for RespondError<T>where
T: Unpin,
impl<T> UnwindSafe for RespondError<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