pub enum FrameSink {
Dir(PathBuf),
Zip {
writer: Box<ZipWriter<BufWriter<File>>>,
partial: PathBuf,
dest: PathBuf,
},
Stdout(StdoutLock<'static>),
}Variants§
Implementations§
Source§impl FrameSink
impl FrameSink
Sourcepub fn open(out: &Path, stdout: bool) -> Result<Self>
pub fn open(out: &Path, stdout: bool) -> Result<Self>
--stdout wins; otherwise a path ending in .zip becomes a ZIP and
anything else a folder.
pub fn write(&mut self, index: u64, png: &[u8]) -> Result<()>
Sourcepub fn finish(self) -> Result<()>
pub fn finish(self) -> Result<()>
Flush and, for a ZIP, write the central directory and move it into place.
pub fn is_stdout(&self) -> bool
Auto Trait Implementations§
impl !Send for FrameSink
impl !Sync for FrameSink
impl Freeze for FrameSink
impl RefUnwindSafe for FrameSink
impl Unpin for FrameSink
impl UnsafeUnpin for FrameSink
impl UnwindSafe for FrameSink
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