Trait diny::AsyncSerialize [−][src]
pub trait AsyncSerialize: Encodable {
type Future: Future + Unpin;
fn serialize<'w, F, W>(
&'w self,
format: &'w F,
writer: &'w mut W
) -> Self::Future
where
F: FormatSerialize<'w>,
W: AsyncWrite + Unpin;
}
Expand description
Serialize a data structure asynchronously.
Associated Types
Required methods
Attempt to serialize the type asynchronusly for the indicated format via the provided asynchronous writer.