diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-02-29 23:02:02 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-02-29 23:02:02 +0100 |
commit | 33a02ff695c57fe88d394ad4d556bb390934ccd6 (patch) | |
tree | 2d629bca27a630528327fae6eeaa00dc9f6f5bfd /src/dav/calencoder.rs | |
parent | fadadffc927015948d38824ea1d70810392182b9 (diff) | |
download | aerogramme-33a02ff695c57fe88d394ad4d556bb390934ccd6.tar.gz aerogramme-33a02ff695c57fe88d394ad4d556bb390934ccd6.zip |
WIP encoder
Diffstat (limited to 'src/dav/calencoder.rs')
-rw-r--r-- | src/dav/calencoder.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/dav/calencoder.rs b/src/dav/calencoder.rs index fbd696d..aabdf36 100644 --- a/src/dav/calencoder.rs +++ b/src/dav/calencoder.rs @@ -8,28 +8,6 @@ use quick_xml::writer::{ElementWriter, Writer}; use quick_xml::name::PrefixDeclaration; use tokio::io::AsyncWrite; -/*pub trait CalWriter<E: Extension>: DavWriter<E> { - fn create_cal_element(&mut self, name: &str) -> ElementWriter<impl AsyncWrite + Unpin>; -} - -impl<'a, W: AsyncWrite+Unpin> DavWriter<CalExtension> for Writer<'a, W, CalExtension> { - fn create_dav_element(&mut self, name: &str) -> ElementWriter<impl AsyncWrite + Unpin> { - self.create_ns_element(name, Namespace::Dav) - } - fn child(w: &'a mut QWriter<W>) -> impl DavWriter<CalExtension> { - Self::child(w) - } - async fn error(&mut self, err: &Violation) -> Result<(), QError> { - err.write(self).await - } -} - -impl<'a, W: AsyncWrite+Unpin> CalWriter<CalExtension> for Writer<'a, W, CalExtension> { - fn create_cal_element(&mut self, name: &str) -> ElementWriter<impl AsyncWrite + Unpin> { - self.create_ns_element(name, Namespace::CalDav) - } -}*/ - pub struct CalCtx { root: bool } |