pub struct TableData {
pub name: String,
pub rows: Vec<RowData>,
}Expand description
一代数据集快照(不可变):knowdb 换入 store、调用者共享读取。
换代 = 新 Arc 让位旧 Arc;调用者手上已拿到的旧代仍可安全读完(数据不
变),因此 rows 在发布后绝不允许被修改。
Fields§
§name: String对应 RefreshSpec::name。
rows: Vec<RowData>该表全量行(列 → 值;类型由数据源/DDL 决定,见 crate::mem)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableData
impl RefUnwindSafe for TableData
impl Send for TableData
impl Sync for TableData
impl Unpin for TableData
impl UnsafeUnpin for TableData
impl UnwindSafe for TableData
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DebugAny for T
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> 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