pub trait TableWriter {
type Schema: Clone;
type CloseResult: Send;
type Config: Clone;
// Required methods
fn new(
path: PathBuf,
schema: Self::Schema,
config: Self::Config,
) -> Result<Self>
where Self: Sized;
fn flush(&mut self) -> Result<()>;
fn close(self) -> Result<Self::CloseResult>;
}Required Associated Types§
Required Methods§
fn new(
path: PathBuf,
schema: Self::Schema,
config: Self::Config,
) -> Result<Self>where
Self: Sized,
Sourcefn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Calls .into() on the internal builder, and writes its result to disk.
fn close(self) -> Result<Self::CloseResult>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".