Enum sailfish::RenderError[][src]

pub enum RenderError {
    Msg(String),
    Fmt(Error),
    BufSize,
}

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

impl RenderError[src]

pub fn new(msg: &str) -> Self[src]

Construct a new error with custom message

Trait Implementations

impl Clone for RenderError[src]

impl Debug for RenderError[src]

impl Display for RenderError[src]

impl Error for RenderError[src]

impl From<Error> for RenderError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.