pub struct StoreHistory {
pub store: Identifier,
pub epoch: Identifier,
}Fields§
§store: Identifier§epoch: IdentifierImplementations§
Source§impl StoreHistory
impl StoreHistory
pub fn encode_bounded(&self, max_bytes: NonZeroUsize) -> Result<Vec<u8>>
pub fn decode_bounded(bytes: &[u8], max_bytes: NonZeroUsize) -> Result<Self>
Trait Implementations§
Source§impl Clone for StoreHistory
impl Clone for StoreHistory
Source§impl Debug for StoreHistory
impl Debug for StoreHistory
Source§impl Described for StoreHistory
impl Described for StoreHistory
Source§impl<'de> Deserialize<'de> for StoreHistory
impl<'de> Deserialize<'de> for StoreHistory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StoreHistory
Source§impl Hash for StoreHistory
impl Hash for StoreHistory
Source§impl MemorySize for StoreHistory
impl MemorySize for StoreHistory
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Source§impl PartialEq for StoreHistory
impl PartialEq for StoreHistory
Source§impl Serialize for StoreHistory
impl Serialize for StoreHistory
impl StructuralPartialEq for StoreHistory
Source§impl Value for StoreHistory
impl Value for StoreHistory
fn write(&self, bytes: &mut Vec<u8>)
fn size(&self) -> usize
fn memory(input: &mut PostcardReader<'_>) -> Result<usize, MessageError>
fn read(input: &mut PostcardReader<'_>) -> Result<Self, MessageError>
fn size_many(values: &[Self]) -> usize
fn write_many(values: &[Self], bytes: &mut Vec<u8>)
fn memory_many( input: &mut Reader<'_>, count: usize, ) -> Result<usize, MessageError>
fn read_many( input: &mut Reader<'_>, count: usize, ) -> Result<Vec<Self>, MessageError>
Auto Trait Implementations§
impl Freeze for StoreHistory
impl RefUnwindSafe for StoreHistory
impl Send for StoreHistory
impl Sync for StoreHistory
impl Unpin for StoreHistory
impl UnsafeUnpin for StoreHistory
impl UnwindSafe for StoreHistory
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