Skip to main content

GetResult

Struct GetResult 

Source
pub struct GetResult<L> {
    pub records: Vec<SelectResult<L>>,
    pub queue_offsets: Vec<u64>,
    pub status: Option<GetStatus>,
    pub next_begin_offset: i64,
    pub min_offset: i64,
    pub max_offset: i64,
    pub buffer_total_size: i32,
    pub message_count: i32,
    pub suggest_pulling_from_replica: bool,
    pub commercial_message_count: i32,
    pub commercial_size_per_message: i32,
    pub cold_data_sum: i64,
}
Expand description

Canonical neutral projection of a legacy logical get result.

Fields§

§records: Vec<SelectResult<L>>

The records value.

§queue_offsets: Vec<u64>

The queue offsets value.

§status: Option<GetStatus>

The status value.

§next_begin_offset: i64

The next begin offset value.

§min_offset: i64

The min offset value.

§max_offset: i64

The max offset value.

§buffer_total_size: i32

The buffer total size value.

§message_count: i32

The number of message entries.

§suggest_pulling_from_replica: bool

Whether the store recommends pulling messages from a replica.

§commercial_message_count: i32

The number of commercial message entries.

§commercial_size_per_message: i32

The commercial size per message value.

§cold_data_sum: i64

The cold data sum value.

Trait Implementations§

Source§

impl<L: Debug> Debug for GetResult<L>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<L> Default for GetResult<L>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<L> Forget for GetResult<L>

§

impl<L> Freeze for GetResult<L>

§

impl<L> Move for GetResult<L>

§

impl<L> RefUnwindSafe for GetResult<L>

§

impl<L> Send for GetResult<L>
where L: Send, RawVecInner: Send, Bytes: Send,

§

impl<L> Sync for GetResult<L>
where L: Sync, RawVecInner: Sync, Bytes: Sync,

§

impl<L> Unpin for GetResult<L>
where L: Unpin, *const u8 is !null: Unpin, *const u8: Unpin, Align8<*mut ()>: Unpin, &'static Vtable: Unpin,

§

impl<L> UnsafeUnpin for GetResult<L>

§

impl<L> UnwindSafe for GetResult<L>
where RawVecInner: UnwindSafe, *const u8: UnwindSafe, Align8<*mut ()>: UnwindSafe, &'static Vtable: UnwindSafe, L: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.