pub struct RangeRecoveryRead<'a, 'root> { /* private fields */ }Expand description
Restricted borrow cannot replace/move the underlying owned source.
Implementations§
Source§impl RangeRecoveryRead<'_, '_>
impl RangeRecoveryRead<'_, '_>
pub fn limits(&self) -> RangeLimits
pub fn attempt_id(&self) -> [u8; 32]
pub fn checkpoint_available(&self) -> bool
pub fn matches_canonical_root(&self, path: &Path) -> bool
pub fn read_exact_at( &mut self, file: RangeFile, offset: u64, out: &mut [u8], ) -> Result<(), RecoveryError>
Auto Trait Implementations§
impl<'a, 'root> !UnwindSafe for RangeRecoveryRead<'a, 'root>
impl<'a, 'root> Freeze for RangeRecoveryRead<'a, 'root>
impl<'a, 'root> RefUnwindSafe for RangeRecoveryRead<'a, 'root>
impl<'a, 'root> Send for RangeRecoveryRead<'a, 'root>
impl<'a, 'root> Sync for RangeRecoveryRead<'a, 'root>
impl<'a, 'root> Unpin for RangeRecoveryRead<'a, 'root>
impl<'a, 'root> UnsafeUnpin for RangeRecoveryRead<'a, 'root>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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