Module compression_info

Module compression_info 

Source

Structs§

CompressedAccountData
Compressed account data used when decompressing.
CompressionInfo

Enums§

AccountState
CompressionState

Constants§

OPTION_COMPRESSION_INFO_SPACE
Space required for Option when Some (1 byte discriminator + INIT_SPACE). Use this constant in account space calculations.

Traits§

CompressAs
Override what gets stored when compressing. Return Self or a different type.
CompressedInitSpace
Account space when compressed.
HasCompressionInfo
Pack
Replace 32-byte Pubkeys with 1-byte indices to save space. If your type has no Pubkeys, just return self.
Space
Unpack

Functions§

claim_completed_epoch_rent
Claim completed-epoch rent to the provided rent sponsor and update last_claimed_slot. Returns Some(claimed) if any lamports were claimed; None if account is compressible or nothing to claim.