diff options
Diffstat (limited to 'plugins/plugin_fdman/src/message/copy.rs')
-rw-r--r-- | plugins/plugin_fdman/src/message/copy.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/plugin_fdman/src/message/copy.rs b/plugins/plugin_fdman/src/message/copy.rs index c57ede30..adb5726a 100644 --- a/plugins/plugin_fdman/src/message/copy.rs +++ b/plugins/plugin_fdman/src/message/copy.rs @@ -37,10 +37,6 @@ pub struct CopyResult { } impl CopyResult { - pub(crate) fn new(copy: Copy, result: Result<u64, CopyError>) -> Self { - Self { copy, result } - } - pub fn copy(&self) -> &Copy { &self.copy } @@ -50,6 +46,12 @@ impl CopyResult { } } +impl crate::message::MessageResult<Copy, u64, CopyError> for CopyResult { + fn new(copy: Copy, result: Result<u64, CopyError>) -> Self { + Self { copy, result } + } +} + impl Message for CopyResult {} #[derive(Debug, thiserror::Error)] |