pub struct RecoveryDeclarationAPI {
pub deadline: u64,
pub partition: u64,
pub sectors: BitField,
}Fields§
§deadline: u64The deadline to which the recovered sectors are assigned, in range [0..WPoStPeriodDeadlines)
partition: u64Partition index within the deadline containing the recovered sectors.
sectors: BitFieldSectors in the partition being declared recovered.
Implementations§
Source§impl RecoveryDeclarationAPI
impl RecoveryDeclarationAPI
pub fn serialize<__S>(
__self: &RecoveryDeclaration,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> RecoveryDeclarationAPI
impl<'de> RecoveryDeclarationAPI
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecoveryDeclaration, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for RecoveryDeclarationAPI
impl RefUnwindSafe for RecoveryDeclarationAPI
impl Send for RecoveryDeclarationAPI
impl Sync for RecoveryDeclarationAPI
impl Unpin for RecoveryDeclarationAPI
impl UnwindSafe for RecoveryDeclarationAPI
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