MethodError

Trait MethodError 

Source
pub trait MethodError {
    // Required method
    fn encode(self) -> Vec<u8> ;
}
Expand description

Encode an error.

This is useful so that users can use Error as a variant in their error types. It should not be necessary to implement this.

Required Methods§

Source

fn encode(self) -> Vec<u8>

Users should not have to call this.

Implementors§