[−][src]Function conjure_error::encode
pub fn encode<T>(error: &T) -> SerializableError where
T: ErrorType + Serialize,
Encodes a Conjure error into its serialized form.
The error's instance ID will be randomly generated if not provided by the error.
Panics
Panics if the error type does not serialize as a struct.