Struct switchboard_v2::vrf::VrfAccountData
source · [−]#[repr(packed)]pub struct VrfAccountData {
pub status: VrfStatus,
pub counter: u128,
pub authority: Pubkey,
pub oracle_queue: Pubkey,
pub escrow: Pubkey,
pub callback: CallbackZC,
pub batch_size: u32,
pub builders: [VrfBuilder; 8],
pub builders_len: u32,
pub test_mode: bool,
pub current_round: VrfRound,
pub _ebuf: [u8; 1024],
}
Fields
status: VrfStatus
counter: u128
oracle_queue: Pubkey
escrow: Pubkey
callback: CallbackZC
batch_size: u32
builders: [VrfBuilder; 8]
builders_len: u32
test_mode: bool
current_round: VrfRound
_ebuf: [u8; 1024]
Implementations
sourceimpl VrfAccountData
impl VrfAccountData
pub fn new<'info>(
switchboard_vrf: &'info AccountInfo<'_>
) -> Result<Ref<'info, VrfAccountData>>
pub fn get_current_randomness_round_id(&self) -> u128
pub fn get_result(&self) -> Result<[u8; 32]>
Trait Implementations
sourceimpl Clone for VrfAccountData
impl Clone for VrfAccountData
sourcefn clone(&self) -> VrfAccountData
fn clone(&self) -> VrfAccountData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for VrfAccountData
impl Default for VrfAccountData
impl Copy for VrfAccountData
impl Pod for VrfAccountData
Auto Trait Implementations
impl RefUnwindSafe for VrfAccountData
impl Send for VrfAccountData
impl Sync for VrfAccountData
impl Unpin for VrfAccountData
impl UnwindSafe for VrfAccountData
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
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
. Read more
sourcefn 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
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more