pub struct Gather {
pub out: Vec<Entry>,
/* private fields */
}Expand description
Whole entries out of a stream — LogSource::fetch spelled over
LogSource::fetch_into, for the callers that want them (tests, small ranges). Holds what it
gathers, which is the point of using it only where that is small — and
BOUNDED (stinky row 20, 2026-10-10): no entry over GATHER_MAX_ENTRY, no
more than GATHER_MAX_TOTAL of blob in all, and no entry past the length
it declared. reserve_for bounds only the first allocation; these bound
what a peer that keeps sending can make this box hold.
Fields§
§out: Vec<Entry>The entries, in order, once ended.
Implementations§
Trait Implementations§
Source§impl FrameSink for Gather
impl FrameSink for Gather
Source§fn begin(
&mut self,
seq: u64,
kind: u16,
meta: &[u8],
blob_len: u64,
) -> Result<()>
fn begin( &mut self, seq: u64, kind: u16, meta: &[u8], blob_len: u64, ) -> Result<()>
An entry begins.
Auto Trait Implementations§
impl Freeze for Gather
impl RefUnwindSafe for Gather
impl Send for Gather
impl Sync for Gather
impl Unpin for Gather
impl UnsafeUnpin for Gather
impl UnwindSafe for Gather
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request