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