Struct tfrecord::writer::RecordWriterInit [−][src]
pub struct RecordWriterInit;
Expand description
The writer initializer.
Implementations
pub fn from_writer<T, W>(writer: W) -> Result<RecordWriter<T, W>, Error> where
T: GenericRecord,
W: Write,
pub fn from_writer<T, W>(writer: W) -> Result<RecordWriter<T, W>, Error> where
T: GenericRecord,
W: Write,
Construct a RecordWriter from a type with Write trait.
The constructed RecordWriter enables the blocking send method.
pub fn create<T, P>(path: P) -> Result<RecordWriter<T, BufWriter<File>>, Error> where
T: GenericRecord,
P: AsRef<Path>,
pub fn create<T, P>(path: P) -> Result<RecordWriter<T, BufWriter<File>>, Error> where
T: GenericRecord,
P: AsRef<Path>,
Construct a RecordWriter by creating a file at specified path.
The constructed RecordWriter enables the blocking send method.
pub fn from_async_writer<T, W>(writer: W) -> Result<RecordWriter<T, W>, Error> where
T: GenericRecord,
W: AsyncWriteExt,
pub fn from_async_writer<T, W>(writer: W) -> Result<RecordWriter<T, W>, Error> where
T: GenericRecord,
W: AsyncWriteExt,
Construct a RecordWriter from a type with [AsyncWriteExt] trait.
The constructed RecordWriter enables the asynchronous send_async method.
pub async fn create_async<T, P>(
path: P
) -> Result<RecordWriter<T, BufWriter<File>>, Error> where
T: GenericRecord,
P: AsRef<Path>,
pub async fn create_async<T, P>(
path: P
) -> Result<RecordWriter<T, BufWriter<File>>, Error> where
T: GenericRecord,
P: AsRef<Path>,
Construct a RecordWriter by creating a file at specified path.
The constructed RecordWriter enables the asynchronous send_async method.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RecordWriterInit
impl Send for RecordWriterInit
impl Sync for RecordWriterInit
impl Unpin for RecordWriterInit
impl UnwindSafe for RecordWriterInit
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V