pub struct ExternalReadResourceContract<'a> {
pub priority: u8,
pub max_parallelism: NonZeroUsize,
pub max_working_memory_bytes: NonZeroUsize,
pub result: ExternalReadResultBudget,
pub task_context: Option<&'a RuntimeTaskContext>,
}Fields§
§priority: u8§max_parallelism: NonZeroUsize§max_working_memory_bytes: NonZeroUsize§result: ExternalReadResultBudget§task_context: Option<&'a RuntimeTaskContext>Implementations§
Source§impl ExternalReadResourceContract<'_>
impl ExternalReadResourceContract<'_>
pub fn checkpoint(&self) -> Result<()>
pub fn reserved_memory_bytes(&self) -> usize
Trait Implementations§
Source§impl<'a> Clone for ExternalReadResourceContract<'a>
impl<'a> Clone for ExternalReadResourceContract<'a>
impl<'a> Copy for ExternalReadResourceContract<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExternalReadResourceContract<'a>
impl<'a> !UnwindSafe for ExternalReadResourceContract<'a>
impl<'a> Freeze for ExternalReadResourceContract<'a>
impl<'a> Send for ExternalReadResourceContract<'a>
impl<'a> Sync for ExternalReadResourceContract<'a>
impl<'a> Unpin for ExternalReadResourceContract<'a>
impl<'a> UnsafeUnpin for ExternalReadResourceContract<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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