#[repr(C)]pub struct Round {
pub discriminator: u64,
pub index: u64,
pub total_weight: u64,
pub start_ts: i64,
pub budget: u64,
}Expand description
One distribution round (“round” PDA + LE index). A round is open when index == config.current_round; settleable when index < config.current_round; closable (rent recovery) after ROUND_RETENTION.
Fields§
§discriminator: u64§index: u64§total_weight: u64Sum of all submit weights in the round (native token units).
start_ts: i64Round open timestamp.
budget: u64Round emission budget (frozen at open from config.round_seconds so a later cadence change never touches old rounds’ settlements).
Implementations§
Trait Implementations§
impl Copy for Round
impl Pod for Round
Auto Trait Implementations§
impl Freeze for Round
impl RefUnwindSafe for Round
impl Send for Round
impl Sync for Round
impl Unpin for Round
impl UnsafeUnpin for Round
impl UnwindSafe for Round
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.