pub struct RefreshingState {
pub op_id: u64,
pub index: u32,
pub plan: Vec<TargetId>,
}Expand description
Read-only refresh of target principals to update stored AUM.
§Transitions
- On completion:
Idle. - On failure:
Idle(with potentially stale AUM data).
Fields§
§op_id: u64§index: u32§plan: Vec<TargetId>Implementations§
Trait Implementations§
Source§impl BorshDeserialize for RefreshingState
impl BorshDeserialize for RefreshingState
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 BorshSchema for RefreshingState
impl BorshSchema for RefreshingState
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl BorshSerialize for RefreshingState
impl BorshSerialize for RefreshingState
Source§impl Clone for RefreshingState
impl Clone for RefreshingState
Source§fn clone(&self) -> RefreshingState
fn clone(&self) -> RefreshingState
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 Debug for RefreshingState
impl Debug for RefreshingState
Source§impl<'de> Deserialize<'de> for RefreshingState
impl<'de> Deserialize<'de> for RefreshingState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RefreshingState> for OpState
impl From<RefreshingState> for OpState
Source§fn from(value: RefreshingState) -> Self
fn from(value: RefreshingState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RefreshingState
impl PartialEq for RefreshingState
Source§impl Serialize for RefreshingState
impl Serialize for RefreshingState
impl Eq for RefreshingState
impl StructuralPartialEq for RefreshingState
Auto Trait Implementations§
impl Freeze for RefreshingState
impl RefUnwindSafe for RefreshingState
impl Send for RefreshingState
impl Sync for RefreshingState
impl Unpin for RefreshingState
impl UnwindSafe for RefreshingState
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