pub struct ZRentConfigMut<'a> { /* private fields */ }Implementations§
Source§impl ZRentConfigMut<'_>
impl ZRentConfigMut<'_>
Sourcepub fn set(&mut self, config: &RentConfig)
pub fn set(&mut self, config: &RentConfig)
Sets all fields from a RentConfig instance, handling zero-copy type conversions
Trait Implementations§
Source§impl<'a> Debug for ZRentConfigMut<'a>
impl<'a> Debug for ZRentConfigMut<'a>
Source§impl<'a> Deref for ZRentConfigMut<'a>
impl<'a> Deref for ZRentConfigMut<'a>
Source§impl<'a> DerefMut for ZRentConfigMut<'a>
impl<'a> DerefMut for ZRentConfigMut<'a>
Source§impl RentConfigTrait for ZRentConfigMut<'_>
impl RentConfigTrait for ZRentConfigMut<'_>
Source§fn compression_cost(&self) -> u64
fn compression_cost(&self) -> u64
Get the compression cost
Source§fn lamports_per_byte_per_epoch(&self) -> u64
fn lamports_per_byte_per_epoch(&self) -> u64
Get lamports per byte per epoch
Source§fn max_funded_epochs(&self) -> u64
fn max_funded_epochs(&self) -> u64
Get maximum funded epochs
Source§fn max_top_up(&self) -> u64
fn max_top_up(&self) -> u64
Get maximum top-up amount per write operation
Source§fn rent_curve_per_epoch(&self, num_bytes: u64) -> u64
fn rent_curve_per_epoch(&self, num_bytes: u64) -> u64
Calculate rent per epoch for a given number of bytes
Auto Trait Implementations§
impl<'a> Freeze for ZRentConfigMut<'a>
impl<'a> RefUnwindSafe for ZRentConfigMut<'a>
impl<'a> Send for ZRentConfigMut<'a>
impl<'a> Sync for ZRentConfigMut<'a>
impl<'a> Unpin for ZRentConfigMut<'a>
impl<'a> !UnwindSafe for ZRentConfigMut<'a>
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