Struct tfrecord::writer::RecordWriter [−][src]
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]
T: GenericRecord,
W: Write,
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]
T: GenericRecord,
W: AsyncWriteExt + Unpin,
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]
T: GenericRecord,
fn clone(&self) -> RecordWriter<T, W>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug, W: Debug> Debug for RecordWriter<T, W> where
T: GenericRecord,
[src]
T: GenericRecord,
impl<T: Eq, W: Eq> Eq for RecordWriter<T, W> where
T: GenericRecord,
[src]
T: GenericRecord,
impl<T: Hash, W: Hash> Hash for RecordWriter<T, W> where
T: GenericRecord,
[src]
T: GenericRecord,
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<T: PartialEq, W: PartialEq> PartialEq<RecordWriter<T, W>> for RecordWriter<T, W> where
T: GenericRecord,
[src]
T: GenericRecord,
fn eq(&self, other: &RecordWriter<T, W>) -> bool
[src]
fn ne(&self, other: &RecordWriter<T, W>) -> bool
[src]
impl<T, W> StructuralEq for RecordWriter<T, W> where
T: GenericRecord,
[src]
T: GenericRecord,
impl<T, W> StructuralPartialEq for RecordWriter<T, W> where
T: GenericRecord,
[src]
T: GenericRecord,
Auto Trait Implementations
impl<T, W> RefUnwindSafe for RecordWriter<T, W> where
T: RefUnwindSafe,
W: RefUnwindSafe,
T: RefUnwindSafe,
W: RefUnwindSafe,
impl<T, W> Send for RecordWriter<T, W> where
T: Send,
W: Send,
T: Send,
W: Send,
impl<T, W> Sync for RecordWriter<T, W> where
T: Sync,
W: Sync,
T: Sync,
W: Sync,
impl<T, W> Unpin for RecordWriter<T, W> where
T: Unpin,
W: Unpin,
T: Unpin,
W: Unpin,
impl<T, W> UnwindSafe for RecordWriter<T, W> where
T: UnwindSafe,
W: UnwindSafe,
T: UnwindSafe,
W: UnwindSafe,
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>,