Enum sailfish::runtime::RenderError
source · pub enum RenderError {
Msg(String),
Fmt(Error),
BufSize,
}
Expand description
The error type which is returned from template function
Variants§
Msg(String)
Custom error message
Fmt(Error)
fmt::Error was raised during rendering
BufSize
Buffer size shrinked during rendering
This method won’t be raised unless you implement Render
trait for custom type.
Also there is no guarentee that this error will be returned whenever the buffer size shrinked.
Implementations§
Trait Implementations§
source§impl Clone for RenderError
impl Clone for RenderError
source§fn clone(&self) -> RenderError
fn clone(&self) -> RenderError
Returns a copy 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 Debug for RenderError
impl Debug for RenderError
source§impl Display for RenderError
impl Display for RenderError
source§impl Error for RenderError
impl Error for RenderError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnwindSafe for RenderError
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