diff options
Diffstat (limited to 'src/message/signalproxy/translation.rs')
| -rw-r--r-- | src/message/signalproxy/translation.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/message/signalproxy/translation.rs b/src/message/signalproxy/translation.rs index f120026..7121032 100644 --- a/src/message/signalproxy/translation.rs +++ b/src/message/signalproxy/translation.rs @@ -91,7 +91,10 @@ //! ]) //! }) //! ``` -use crate::primitive::{Variant, VariantList}; +use crate::{ + primitive::{Variant, VariantList}, + ProtocolError, +}; #[deprecated( since = "0.1.0", @@ -116,6 +119,8 @@ where } pub trait NetworkList { - fn to_network_list(&self) -> VariantList; - fn from_network_list(input: &mut VariantList) -> Self; + fn to_network_list(&self) -> Result<VariantList, ProtocolError>; + fn from_network_list(input: &mut VariantList) -> Result<Self, ProtocolError> + where + Self: std::marker::Sized; } |
