[][src]Struct tfrecord::writer::RecordWriterInit

pub struct RecordWriterInit;

The writer initializer.

Implementations

impl RecordWriterInit[src]

pub fn from_writer<T, W>(writer: W) -> Result<RecordWriter<T, W>, Error> where
    T: GenericRecord,
    W: Write
[src]

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>, 
[src]

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
[src]

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>, 
[src]

Construct a RecordWriter by creating a file at specified path.

The constructed RecordWriter enables the asynchronous send_async method.

Trait Implementations

impl Clone for RecordWriterInit[src]

impl Debug for RecordWriterInit[src]

impl Eq for RecordWriterInit[src]

impl Hash for RecordWriterInit[src]

impl PartialEq<RecordWriterInit> for RecordWriterInit[src]

impl StructuralEq for RecordWriterInit[src]

impl StructuralPartialEq for RecordWriterInit[src]

Auto Trait Implementations

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> SetParameter for T

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.