Struct tfrecord::writer::RecordWriter[][src]

pub struct RecordWriter<T, W> where
    T: GenericRecord
{ /* fields omitted */ }

The writer type.

It provides blocing RecordWriter::send and analogues RecordWriter::send_async methods to write records.

Implementations

impl<T, W> RecordWriter<T, W> where
    T: GenericRecord,
    W: Write
[src]

pub fn send(&mut self, record: T) -> Result<(), Error>[src]

Write a record.

The method is enabled if the underlying writer implements Write.

pub fn flush(&mut self) -> Result<(), Error>[src]

Flush the output stream.

impl<T, W> RecordWriter<T, W> where
    T: GenericRecord,
    W: AsyncWriteExt + Unpin
[src]

pub async fn send_async(&mut self, record: T) -> Result<(), Error>[src]

Write a record.

The method is enabled if the underlying writer implements [AsyncWriteExt].

pub async fn flush_async(&mut self) -> Result<(), Error>[src]

Flush the output stream asynchronously.

Trait Implementations

impl<T: Clone, W: Clone> Clone for RecordWriter<T, W> where
    T: GenericRecord
[src]

impl<T: Debug, W: Debug> Debug for RecordWriter<T, W> where
    T: GenericRecord
[src]

impl<T: Eq, W: Eq> Eq for RecordWriter<T, W> where
    T: GenericRecord
[src]

impl<T: Hash, W: Hash> Hash for RecordWriter<T, W> where
    T: GenericRecord
[src]

impl<T: PartialEq, W: PartialEq> PartialEq<RecordWriter<T, W>> for RecordWriter<T, W> where
    T: GenericRecord
[src]

impl<T, W> StructuralEq for RecordWriter<T, W> where
    T: GenericRecord
[src]

impl<T, W> StructuralPartialEq for RecordWriter<T, W> where
    T: GenericRecord
[src]

Auto Trait Implementations

impl<T, W> RefUnwindSafe for RecordWriter<T, W> where
    T: RefUnwindSafe,
    W: RefUnwindSafe

impl<T, W> Send for RecordWriter<T, W> where
    T: Send,
    W: Send

impl<T, W> Sync for RecordWriter<T, W> where
    T: Sync,
    W: Sync

impl<T, W> Unpin for RecordWriter<T, W> where
    T: Unpin,
    W: Unpin

impl<T, W> UnwindSafe for RecordWriter<T, W> where
    T: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,