Function hotshot_types::event::error_adaptor::serialize

source ·
pub fn serialize<S: Serializer, TYPES: NodeType>(
    elem: &Arc<HotShotError<TYPES>>,
    serializer: S,
) -> Result<S::Ok, S::Error>
Expand description

Convert a HotShotError into a string

§Errors

Returns Err if the serializer fails.