pub struct SourceDataBlocksInMemory {
pub blocks: Vec<Arc<PartitionSourceBlock>>,
pub block_ids_hash: Vec<u8>,
}Expand description
A PartitionBlocksSource implementation that stores blocks in memory.
Fields§
§blocks: Vec<Arc<PartitionSourceBlock>>§block_ids_hash: Vec<u8>Trait Implementations§
Source§impl Debug for SourceDataBlocksInMemory
impl Debug for SourceDataBlocksInMemory
Source§impl PartitionBlocksSource for SourceDataBlocksInMemory
impl PartitionBlocksSource for SourceDataBlocksInMemory
Source§fn get_nb_blocks(&self) -> i64
fn get_nb_blocks(&self) -> i64
Returns the number of blocks in the source.
Source§fn get_max_payload_size(&self) -> i64
fn get_max_payload_size(&self) -> i64
Returns the maximum payload size of the blocks in the source.
Source§fn get_blocks_stream<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Pin<Box<dyn Stream<Item = Result<Arc<PartitionSourceBlock>, Error>> + Send>>> + Send + 'async_trait>>where
'life0: 'async_trait,
SourceDataBlocksInMemory: 'async_trait,
fn get_blocks_stream<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Pin<Box<dyn Stream<Item = Result<Arc<PartitionSourceBlock>, Error>> + Send>>> + Send + 'async_trait>>where
'life0: 'async_trait,
SourceDataBlocksInMemory: 'async_trait,
Returns a stream of the source blocks.
Auto Trait Implementations§
impl Freeze for SourceDataBlocksInMemory
impl RefUnwindSafe for SourceDataBlocksInMemory
impl Send for SourceDataBlocksInMemory
impl Sync for SourceDataBlocksInMemory
impl Unpin for SourceDataBlocksInMemory
impl UnwindSafe for SourceDataBlocksInMemory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].