[−][src]Struct tfrecord::summary::EventWriterInit
The event writer initializer.
Fields
auto_flush: bool
If set, the writer flushes the buffer after writing a event.
Implementations
impl EventWriterInit
[src]
pub fn from_writer<W>(self, writer: W) -> Result<EventWriter<W>, Error> where
W: Write,
[src]
W: Write,
Construct an EventWriter from a type with Write trait.
pub fn create<P>(self, path: P) -> Result<EventWriter<BufWriter<File>>, Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Construct an EventWriter by creating a file at specified path.
pub fn from_prefix<S1>(
self,
prefix: S1,
file_name_suffix: Option<String>
) -> Result<EventWriter<BufWriter<File>>, Error> where
S1: AsRef<str>,
[src]
self,
prefix: S1,
file_name_suffix: Option<String>
) -> Result<EventWriter<BufWriter<File>>, Error> where
S1: AsRef<str>,
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,
[src]
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>,
[src]
self,
path: P
) -> Result<EventWriter<BufWriter<File>>, Error> where
P: AsRef<Path>,
Construct an EventWriter by creating a file at specified path.
pub async fn from_prefix_async<S1>(
self,
prefix: S1,
file_name_suffix: Option<String>
) -> Result<EventWriter<BufWriter<File>>, Error> where
S1: AsRef<str>,
[src]
self,
prefix: S1,
file_name_suffix: Option<String>
) -> Result<EventWriter<BufWriter<File>>, Error> where
S1: AsRef<str>,
Construct an asynchronous EventWriter with TensorFlow-style path prefix and an optional file name suffix.
Trait Implementations
impl Clone for EventWriterInit
[src]
fn clone(&self) -> EventWriterInit
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EventWriterInit
[src]
impl Default for EventWriterInit
[src]
impl Eq for EventWriterInit
[src]
impl Hash for EventWriterInit
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<EventWriterInit> for EventWriterInit
[src]
fn eq(&self, other: &EventWriterInit) -> bool
[src]
fn ne(&self, other: &EventWriterInit) -> bool
[src]
impl StructuralEq for EventWriterInit
[src]
impl StructuralPartialEq for EventWriterInit
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,