pub struct WarcWriter<W: Write> { /* private fields */ }Expand description
WARC Writer with compression and rotation support
Implementations§
Source§impl<W: Write> WarcWriter<W>
impl<W: Write> WarcWriter<W>
Sourcepub fn bytes_written(&self) -> u64
pub fn bytes_written(&self) -> u64
Get bytes written so far
Sourcepub fn write_warcinfo(&mut self, info: &WarcInfo) -> Result<()>
pub fn write_warcinfo(&mut self, info: &WarcInfo) -> Result<()>
Write a warcinfo record
Sourcepub fn write_request(&mut self, request: &WarcRequest) -> Result<String>
pub fn write_request(&mut self, request: &WarcRequest) -> Result<String>
Write a request record
Sourcepub fn write_response(
&mut self,
response: &WarcResponse,
concurrent_to: Option<&str>,
) -> Result<String>
pub fn write_response( &mut self, response: &WarcResponse, concurrent_to: Option<&str>, ) -> Result<String>
Write a response record
Sourcepub fn write_metadata(
&mut self,
url: &Url,
metadata: &WarcMetadata,
) -> Result<String>
pub fn write_metadata( &mut self, url: &Url, metadata: &WarcMetadata, ) -> Result<String>
Write a metadata record
Auto Trait Implementations§
impl<W> !Freeze for WarcWriter<W>
impl<W> RefUnwindSafe for WarcWriter<W>where
W: RefUnwindSafe,
impl<W> Send for WarcWriter<W>where
W: Send,
impl<W> Sync for WarcWriter<W>where
W: Sync,
impl<W> Unpin for WarcWriter<W>where
W: Unpin,
impl<W> UnwindSafe for WarcWriter<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more