Struct tfrecord::EventWriterInit [−][src]
pub struct EventWriterInit { pub auto_flush: bool, }
Expand description
The event writer initializer.
Fields
auto_flush: bool
If set, the writer flushes the buffer after writing a event.
Implementations
Construct an EventWriter from a type with Write trait.
Construct an EventWriter by creating a file at specified path.
Construct an EventWriter with TensorFlow-style path prefix and an optional file name suffix.
pub fn from_async_writer<W>(self, writer: W) -> Result<EventWriter<W>, Error> where
W: AsyncWriteExt,
pub fn from_async_writer<W>(self, writer: W) -> Result<EventWriter<W>, Error> where
W: AsyncWriteExt,
Construct an EventWriter from a type with [AsyncWriteExt] trait.
pub async fn create_async<P>(
self,
path: P
) -> Result<EventWriter<BufWriter<File>>, Error> where
P: AsRef<Path>,
pub async fn create_async<P>(
self,
path: P
) -> Result<EventWriter<BufWriter<File>>, Error> where
P: AsRef<Path>,
Construct an EventWriter by creating a file at specified path.
Construct an asynchronous EventWriter with TensorFlow-style path prefix and an optional file name suffix.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EventWriterInit
impl Send for EventWriterInit
impl Sync for EventWriterInit
impl Unpin for EventWriterInit
impl UnwindSafe for EventWriterInit
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V