pub enum PasteError {
Json(String),
Empty,
Tokens(TokenError),
}Expand description
Why Session::paste_json pasted nothing.
Variants§
Json(String)
The text is not a valid document, with serde’s message.
Empty
The document holds no nodes.
Tokens(TokenError)
No fresh tokens were left for its host boxes.
Trait Implementations§
Source§impl Clone for PasteError
impl Clone for PasteError
Source§impl Debug for PasteError
impl Debug for PasteError
Source§impl Display for PasteError
impl Display for PasteError
impl Eq for PasteError
Source§impl Error for PasteError
impl Error for PasteError
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 PasteError
impl PartialEq for PasteError
impl StructuralPartialEq for PasteError
Auto Trait Implementations§
impl Freeze for PasteError
impl RefUnwindSafe for PasteError
impl Send for PasteError
impl Sync for PasteError
impl Unpin for PasteError
impl UnsafeUnpin for PasteError
impl UnwindSafe for PasteError
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