Struct fog_pack::document::AsyncVecDocumentBuilder [−][src]
An stream adapter for building many Documents.
Frequently, fog-pack’s 1 MiB size limit can pose problems with large data sets. Generally, these data sets can be treated as large arrays of relatively small data objects. This adaptor can take a stream over any set of data objects, and will produce a series of Documents that are under the size limit.
For the synchronous version that works on iterators, see
AsyncVecDocumentBuilder.
Implementations
impl<St> AsyncVecDocumentBuilder<St> where
St: Stream,
St::Item: Serialize, [src]
St: Stream,
St::Item: Serialize,
pub fn new(stream: St, schema: Option<&Hash>) -> Self[src]
pub fn new_ordered(stream: St, schema: Option<&Hash>) -> Self[src]
pub fn compression(self, setting: Option<u8>) -> Self[src]
Override the default compression settings for all produced Documents. None will disable
compression. Some(level) will compress with the provided level as the setting for the
algorithm.
pub fn sign(self, key: &IdentityKey) -> Self[src]
Sign the all produced documents from this point onward.
Trait Implementations
impl<St> Debug for AsyncVecDocumentBuilder<St> where
St: Stream + Debug,
St::Item: Serialize + Debug, [src]
St: Stream + Debug,
St::Item: Serialize + Debug,
impl<St> FusedStream for AsyncVecDocumentBuilder<St> where
St: Stream + FusedStream,
St::Item: Serialize, [src]
St: Stream + FusedStream,
St::Item: Serialize,
fn is_terminated(&self) -> bool[src]
impl<St> Stream for AsyncVecDocumentBuilder<St> where
St: Stream,
St::Item: Serialize, [src]
St: Stream,
St::Item: Serialize,
type Item = Result<NewDocument>
Values yielded by the stream.
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<NewDocument>>>[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<NewDocument>>>
pub fn size_hint(&self) -> (usize, Option<usize>)[src]
impl<'__pin, St> Unpin for AsyncVecDocumentBuilder<St> where
__Origin<'__pin, St>: Unpin,
St: Stream,
St::Item: Serialize, [src]
__Origin<'__pin, St>: Unpin,
St: Stream,
St::Item: Serialize,
Auto Trait Implementations
impl<St> !RefUnwindSafe for AsyncVecDocumentBuilder<St>
impl<St> !Send for AsyncVecDocumentBuilder<St>
impl<St> !Sync for AsyncVecDocumentBuilder<St>
impl<St> !UnwindSafe for AsyncVecDocumentBuilder<St>
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> Same<T> for T
type Output = T
Should always be Self
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<S, T, E> TryStream for S where
S: Stream<Item = Result<T, E>> + ?Sized, [src]
S: Stream<Item = Result<T, E>> + ?Sized,
type Ok = T
The type of successful values yielded by this future
type Error = E
The type of failures yielded by this future
pub fn try_poll_next(
self: Pin<&mut S>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>[src]
self: Pin<&mut S>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,