pub enum SyncInstruction {
V0(SyncRecordV0),
}Expand description
Versioned sync program instruction
Variants§
V0(SyncRecordV0)
Implementations§
Source§impl SyncInstruction
impl SyncInstruction
Sourcepub fn base_fee(&mut self) -> &mut Option<u16>
pub fn base_fee(&mut self) -> &mut Option<u16>
Returns base transaction fee charged by ER node, if set
Sourcepub fn block_time_ms(&mut self) -> &mut Option<u16>
pub fn block_time_ms(&mut self) -> &mut Option<u16>
Returns the block time in ms of the given ER node, if set
Sourcepub fn features(&mut self) -> &mut Option<FeaturesSet>
pub fn features(&mut self) -> &mut Option<FeaturesSet>
Returns the features set supported by ER node, if set
Sourcepub fn load_average(&mut self) -> &mut Option<u32>
pub fn load_average(&mut self) -> &mut Option<u32>
Returns last observed average load on the given ER node, if set
pub fn country_code(&mut self) -> &mut Option<CountryCode>
Trait Implementations§
Source§impl BorshDeserialize for SyncInstruction
impl BorshDeserialize for SyncInstruction
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§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.
Source§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 SyncInstruction
impl BorshSerialize for SyncInstruction
Auto Trait Implementations§
impl Freeze for SyncInstruction
impl RefUnwindSafe for SyncInstruction
impl Send for SyncInstruction
impl Sync for SyncInstruction
impl Unpin for SyncInstruction
impl UnwindSafe for SyncInstruction
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