[−][src]Struct tfrecord::writer::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]
T: GenericRecord,
W: Write,
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]
T: GenericRecord,
P: AsRef<Path>,
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]
T: GenericRecord,
W: AsyncWriteExt,
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]
path: P
) -> Result<RecordWriter<T, BufWriter<File>>, Error> where
T: GenericRecord,
P: AsRef<Path>,
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]
fn clone(&self) -> RecordWriterInit
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RecordWriterInit
[src]
impl Eq for RecordWriterInit
[src]
impl Hash for RecordWriterInit
[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<RecordWriterInit> for RecordWriterInit
[src]
fn eq(&self, other: &RecordWriterInit) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for RecordWriterInit
[src]
impl StructuralPartialEq for RecordWriterInit
[src]
Auto Trait Implementations
impl RefUnwindSafe for RecordWriterInit
impl Send for RecordWriterInit
impl Sync for RecordWriterInit
impl Unpin for RecordWriterInit
impl UnwindSafe for RecordWriterInit
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>,