pub struct EnrollmentLiveReceipt { /* private fields */ }Expand description
Stored secret-bearing enrollment receipt while its receipt deadline is live.
Implementations§
Source§impl EnrollmentLiveReceipt
impl EnrollmentLiveReceipt
Sourcepub const fn from_commit(committed: EnrollBound) -> Self
pub const fn from_commit(committed: EnrollBound) -> Self
Captures the exact committed enrollment payload as a live receipt.
Sourcepub const fn committed(&self) -> &EnrollBound
pub const fn committed(&self) -> &EnrollBound
Borrows the complete immutable committed receipt payload.
Sourcepub const fn into_committed(self) -> EnrollBound
pub const fn into_committed(self) -> EnrollBound
Moves the complete committed payload without copying receipt state.
Sourcepub fn encode_committed_body(&self) -> Vec<u8> ⓘ
pub fn encode_committed_body(&self) -> Vec<u8> ⓘ
Encodes the exact committed v1 wire body by borrowing its payload.
Sourcepub fn decode_committed_body(bytes: &[u8]) -> Result<Self, CodecError>
pub fn decode_committed_body(bytes: &[u8]) -> Result<Self, CodecError>
Decodes one exact committed v1 wire body, moving the validated payload.
§Errors
Returns crate::wire::CodecError for a noncanonical field, wrong
originating request, incomplete body or trailing bytes.
Trait Implementations§
Source§impl Clone for EnrollmentLiveReceipt
impl Clone for EnrollmentLiveReceipt
Source§impl Debug for EnrollmentLiveReceipt
impl Debug for EnrollmentLiveReceipt
impl Eq for EnrollmentLiveReceipt
Source§impl PartialEq for EnrollmentLiveReceipt
impl PartialEq for EnrollmentLiveReceipt
impl StructuralPartialEq for EnrollmentLiveReceipt
Auto Trait Implementations§
impl Freeze for EnrollmentLiveReceipt
impl RefUnwindSafe for EnrollmentLiveReceipt
impl Send for EnrollmentLiveReceipt
impl Sync for EnrollmentLiveReceipt
impl Unpin for EnrollmentLiveReceipt
impl UnsafeUnpin for EnrollmentLiveReceipt
impl UnwindSafe for EnrollmentLiveReceipt
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