s2n_quic_core/buffer/writer.rs
1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4pub mod storage;
5
6pub use storage::Storage;
7
8/// A buffer capable of being written into by a reader
9pub trait Writer {
10 fn read_from<R>(&mut self, reader: &mut R) -> Result<(), super::Error<R::Error>>
11 where
12 R: super::Reader + ?Sized;
13}