pub type BytesFullKey = FullKey<Bytes>;
Aliased Type§
struct BytesFullKey {
pub user_key: UserKey<Bytes>,
pub epoch_with_gap: EpochWithGap,
}
Fields§
§user_key: UserKey<Bytes>
§epoch_with_gap: EpochWithGap
Implementations
§impl<T> FullKey<T>
impl<T> FullKey<T>
§impl<T> FullKey<T>
impl<T> FullKey<T>
pub fn new(table_id: TableId, table_key: TableKey<T>, epoch: u64) -> FullKey<T>
pub fn new_with_gap_epoch( table_id: TableId, table_key: TableKey<T>, epoch_with_gap: EpochWithGap, ) -> FullKey<T>
pub fn from_user_key(user_key: UserKey<T>, epoch: u64) -> FullKey<T>
pub fn for_test(table_id: TableId, table_key: T, epoch: u64) -> FullKey<T>
pub fn for_test(table_id: TableId, table_key: T, epoch: u64) -> FullKey<T>
Pass the inner type of table_key
to make the code less verbose.
pub fn encode_into(&self, buf: &mut impl BufMut)
pub fn encode_into(&self, buf: &mut impl BufMut)
Encode in to a buffer.
pub fn encode(&self) -> Vec<u8> ⓘ
pub fn encode_into_without_table_id(&self, buf: &mut impl BufMut)
pub fn encode_reverse_epoch(&self) -> Vec<u8> ⓘ
pub fn is_empty(&self) -> bool
pub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Get the length of the encoded format.