pub struct RasterStreamWriterBuilder { /* private fields */ }Expand description
Builder for configuring a raster stream writer.
Implementations§
Source§impl RasterStreamWriterBuilder
impl RasterStreamWriterBuilder
Sourcepub fn new<P: AsRef<Path>>(path: P, metadata: RasterMetadata) -> Self
pub fn new<P: AsRef<Path>>(path: P, metadata: RasterMetadata) -> Self
Create a new builder.
Sourcepub fn chunk_size(self, width: usize, height: usize) -> Self
pub fn chunk_size(self, width: usize, height: usize) -> Self
Set the chunk size.
Sourcepub fn compression(self, level: u8) -> Self
pub fn compression(self, level: u8) -> Self
Enable compression.
Sourcepub async fn build(self) -> Result<RasterStreamWriter>
pub async fn build(self) -> Result<RasterStreamWriter>
Build the writer.
Auto Trait Implementations§
impl Freeze for RasterStreamWriterBuilder
impl RefUnwindSafe for RasterStreamWriterBuilder
impl Send for RasterStreamWriterBuilder
impl Sync for RasterStreamWriterBuilder
impl Unpin for RasterStreamWriterBuilder
impl UnsafeUnpin for RasterStreamWriterBuilder
impl UnwindSafe for RasterStreamWriterBuilder
Blanket Implementations§
impl<T> Allocation for T
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