pub struct BufferRelayerRound {
pub num_success: u32,
pub num_error: u32,
pub round_open_slot: u64,
pub round_open_timestamp: i64,
pub oracle_pubkey: Pubkey,
}
Fields§
§num_success: u32
Number of successful responses.
num_error: u32
Number of error responses.
round_open_slot: u64
Slot when the buffer relayer round was opened.
round_open_timestamp: i64
Timestamp when the buffer relayer round was opened.
oracle_pubkey: Pubkey
The public key of the oracle fulfilling the buffer relayer update request.
Trait Implementations§
source§impl BorshDeserialize for BufferRelayerRoundwhere
u32: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
Pubkey: BorshDeserialize,
impl BorshDeserialize for BufferRelayerRoundwhere
u32: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
Pubkey: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for BufferRelayerRound
impl BorshSerialize for BufferRelayerRound
source§impl Clone for BufferRelayerRound
impl Clone for BufferRelayerRound
source§fn clone(&self) -> BufferRelayerRound
fn clone(&self) -> BufferRelayerRound
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for BufferRelayerRound
impl Default for BufferRelayerRound
source§fn default() -> BufferRelayerRound
fn default() -> BufferRelayerRound
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BufferRelayerRound
impl RefUnwindSafe for BufferRelayerRound
impl Send for BufferRelayerRound
impl Sync for BufferRelayerRound
impl Unpin for BufferRelayerRound
impl UnwindSafe for BufferRelayerRound
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