implement ConnectionExtensionResponse for Option<T>

This commit is contained in:
Rudi Floren 2024-12-16 20:21:31 +01:00
parent 785d3f6771
commit 83a51f2b69

View File

@ -321,6 +321,8 @@ pub trait ConnectionExtensionResponse: FromXmlOwned + Debug {}
impl ConnectionExtensionResponse for NoExtension {}
impl<T: ConnectionExtensionResponse> ConnectionExtensionResponse for Option<T> {}
/// Combines connection extensions and command extensions
///
/// Some extensions are sent by the server no matter if an extension was defined for the command.