Skip to content

Commit

Permalink
Add low-level writer skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
kerristrasz committed Jul 18, 2024
1 parent e27b55e commit e151da6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/stream/writer.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// TODO: implement everything

use crate::stream::Event;
use crate::Result;
use std::io::Write;

pub struct Writer {
writer: Box<dyn Write>,
}

impl Writer {
pub fn new(writer: Box<dyn Write>) -> Self {
Self { writer }
}

fn write<'a>(event: Event<'a>) -> Result<()> {
todo!()
}
}

0 comments on commit e151da6

Please sign in to comment.