pub enum DocumentSessionError {
CitationNotFound(String),
InvalidPosition(String),
Format(FormatDocumentError),
}Expand description
Errors returned by the stateful session API.
Variants§
CitationNotFound(String)
The requested citation does not exist in the session.
InvalidPosition(String)
The requested insertion position is invalid.
Format(FormatDocumentError)
Rendering failed while recomputing session output.
Trait Implementations§
Source§impl Debug for DocumentSessionError
impl Debug for DocumentSessionError
Source§impl Display for DocumentSessionError
impl Display for DocumentSessionError
Source§impl Error for DocumentSessionError
impl Error for DocumentSessionError
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 From<FormatDocumentError> for DocumentSessionError
impl From<FormatDocumentError> for DocumentSessionError
Source§fn from(err: FormatDocumentError) -> Self
fn from(err: FormatDocumentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DocumentSessionError
impl !UnwindSafe for DocumentSessionError
impl Freeze for DocumentSessionError
impl Send for DocumentSessionError
impl Sync for DocumentSessionError
impl Unpin for DocumentSessionError
impl UnsafeUnpin for DocumentSessionError
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