Struct tfrecord::EventWriterInit [−][src]
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]
pub 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]
pub 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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,