tool: Move read_debug to trait so generic code can use it

Returns error for backends that don't support it.
This commit is contained in:
Ian Douglas Scott
2021-02-18 14:14:44 -08:00
committed by Jeremy Soller
parent 0c1584385c
commit 504284bf72
4 changed files with 16 additions and 12 deletions

View File

@ -3,6 +3,8 @@
pub enum Error {
/// Data length is too large
DataLength(usize),
/// Operation not supported
NotSupported,
/// A parameter was invalid
Parameter,
/// EC protocol returned an error result