diff options
| author | Max Audron <me@audron.dev> | 2026-02-21 17:48:06 +0100 |
|---|---|---|
| committer | Max Audron <me@audron.dev> | 2026-02-21 17:48:06 +0100 |
| commit | cc542048e369dda0a773e1e3a4601dc7d20ff16a (patch) | |
| tree | ee3a23a88c0cb39cf222b871932636a2c912dd92 /src/message/signalproxy/objects/networkconfig.rs | |
| parent | handshare and signalproxy/rpccall error handling (diff) | |
Syncable trait error handling
Diffstat (limited to 'src/message/signalproxy/objects/networkconfig.rs')
| -rw-r--r-- | src/message/signalproxy/objects/networkconfig.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/message/signalproxy/objects/networkconfig.rs b/src/message/signalproxy/objects/networkconfig.rs index c4f5397..6268a69 100644 --- a/src/message/signalproxy/objects/networkconfig.rs +++ b/src/message/signalproxy/objects/networkconfig.rs @@ -28,7 +28,7 @@ impl Syncable for NetworkConfig { #[cfg(feature = "client")] impl crate::message::StatefulSyncableClient for NetworkConfig { - fn sync_custom(&mut self, mut msg: crate::message::SyncMessage) + fn sync_custom(&mut self, mut msg: crate::message::SyncMessage) -> Result<(), crate::error::ProtocolError> where Self: Sized, { @@ -43,12 +43,13 @@ impl crate::message::StatefulSyncableClient for NetworkConfig { "setStandardCtcp" => self.set_standard_ctcp(get_param!(msg)), _ => (), } + Ok(()) } } #[cfg(feature = "server")] impl crate::message::StatefulSyncableServer for NetworkConfig { - fn sync_custom(&mut self, mut msg: crate::message::SyncMessage) + fn sync_custom(&mut self, mut msg: crate::message::SyncMessage) -> Result<(), crate::error::ProtocolError> where Self: Sized, { @@ -63,5 +64,6 @@ impl crate::message::StatefulSyncableServer for NetworkConfig { "requestSetStandardCtcp" => self.set_standard_ctcp(get_param!(msg)), _ => (), } + Ok(()) } } |
