Struct tfrecord::RecordStreamInit [−][src]
The stream initializer.
Fields
check_integrity: bool
Implementations
impl RecordStreamInit
[src]
pub async fn from_reader<T, R>(
self,
reader: R
) -> Result<impl Stream<Item = Result<T, Error>>, Error> where
T: GenericRecord,
R: 'static + AsyncRead + Unpin + Send,
[src]
self,
reader: R
) -> Result<impl Stream<Item = Result<T, Error>>, Error> where
T: GenericRecord,
R: 'static + AsyncRead + Unpin + Send,
Build a stream from a reader type with [AsyncRead] trait.
Specify the output type while calling this method. For example,
from_reader<Example, _>()
, or you can use bytes_from_reader,
raw_examples_from_reader and
examples_from_reader aliases.
pub async fn open<T, P>(
self,
path: P
) -> Result<impl Stream<Item = Result<T, Error>>, Error> where
T: GenericRecord,
P: AsRef<Path>,
[src]
self,
path: P
) -> Result<impl Stream<Item = Result<T, Error>>, Error> where
T: GenericRecord,
P: AsRef<Path>,
Build a stream from a path.
Specify the output type while calling this method. For example,
open<Example, _>()
, or you can use bytes_open,
raw_examples_open and
examples_open aliases.
pub async fn bytes_from_reader<R>(
self,
reader: R
) -> Result<impl Stream<Item = Result<Vec<u8>, Error>>, Error> where
R: 'static + AsyncRead + Unpin + Send,
[src]
self,
reader: R
) -> Result<impl Stream<Item = Result<Vec<u8>, Error>>, Error> where
R: 'static + AsyncRead + Unpin + Send,
Alias to from_reader<Vec
pub async fn raw_examples_from_reader<R>(
self,
reader: R
) -> Result<impl Stream<Item = Result<RawExample, Error>>, Error> where
R: 'static + AsyncRead + Unpin + Send,
[src]
self,
reader: R
) -> Result<impl Stream<Item = Result<RawExample, Error>>, Error> where
R: 'static + AsyncRead + Unpin + Send,
Alias to from_reader<Example, R>.
pub async fn examples_from_reader<R>(
self,
reader: R
) -> Result<impl Stream<Item = Result<Example, Error>>, Error> where
R: 'static + AsyncRead + Unpin + Send,
[src]
self,
reader: R
) -> Result<impl Stream<Item = Result<Example, Error>>, Error> where
R: 'static + AsyncRead + Unpin + Send,
Alias to from_reader<Example, R>.
pub async fn bytes_open<P>(
self,
path: P
) -> Result<impl Stream<Item = Result<Vec<u8>, Error>>, Error> where
P: AsRef<Path>,
[src]
self,
path: P
) -> Result<impl Stream<Item = Result<Vec<u8>, Error>>, Error> where
P: AsRef<Path>,
Alias to open<Vec
pub async fn raw_examples_open<P>(
self,
path: P
) -> Result<impl Stream<Item = Result<RawExample, Error>>, Error> where
P: AsRef<Path>,
[src]
self,
path: P
) -> Result<impl Stream<Item = Result<RawExample, Error>>, Error> where
P: AsRef<Path>,
Alias to open<Example, R>.
pub async fn examples_open<P>(
self,
path: P
) -> Result<impl Stream<Item = Result<Example, Error>>, Error> where
P: AsRef<Path>,
[src]
self,
path: P
) -> Result<impl Stream<Item = Result<Example, Error>>, Error> where
P: AsRef<Path>,
Alias to open<Example, R>.
Trait Implementations
impl Clone for RecordStreamInit
[src]
fn clone(&self) -> RecordStreamInit
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RecordStreamInit
[src]
impl Default for RecordStreamInit
[src]
impl Eq for RecordStreamInit
[src]
impl Hash for RecordStreamInit
[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<RecordStreamInit> for RecordStreamInit
[src]
fn eq(&self, other: &RecordStreamInit) -> bool
[src]
fn ne(&self, other: &RecordStreamInit) -> bool
[src]
impl StructuralEq for RecordStreamInit
[src]
impl StructuralPartialEq for RecordStreamInit
[src]
Auto Trait Implementations
impl RefUnwindSafe for RecordStreamInit
impl Send for RecordStreamInit
impl Sync for RecordStreamInit
impl Unpin for RecordStreamInit
impl UnwindSafe for RecordStreamInit
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>,