pub struct VrfAccount<'a> { /* private fields */ }
Implementations§
Source§impl<'a> VrfAccount<'a>
impl<'a> VrfAccount<'a>
pub fn new(account: &'a AccountInfo<'a>) -> Result<Self, ProgramError>
Sourcepub fn get_verified_randomness(&self) -> Result<Vec<u8>, ProgramError>
pub fn get_verified_randomness(&self) -> Result<Vec<u8>, ProgramError>
returns the current verified randomness value held in the account. returns ProgramError if not randomness currently exists or if the number of proof verificaitons is less than the reuired minimum numner of verifications.
Auto Trait Implementations§
impl<'a> Freeze for VrfAccount<'a>
impl<'a> !RefUnwindSafe for VrfAccount<'a>
impl<'a> !Send for VrfAccount<'a>
impl<'a> !Sync for VrfAccount<'a>
impl<'a> Unpin for VrfAccount<'a>
impl<'a> !UnwindSafe for VrfAccount<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more