pub enum PayloadResidency {
Resident(ResidentPayload),
External(ExternalResidency),
PagedOut(PagedOutResidency),
Collapsed(CollapsedPayload),
}Expand description
Where a P3 handle’s body currently lives.
External and PagedOut are deliberately different states: the first is “generated over the
inline limit and never was resident”, the second is “was resident, evicted under pressure”.
The historical implementation collapsed both into one spool notion, which is why a paged-out
body and an oversized one could not be told apart on restore.
Variants§
Resident(ResidentPayload)
External(ExternalResidency)
PagedOut(PagedOutResidency)
Collapsed(CollapsedPayload)
Body dropped entirely; only the preview and accounting survive.
Trait Implementations§
Source§impl Clone for PayloadResidency
impl Clone for PayloadResidency
Source§fn clone(&self) -> PayloadResidency
fn clone(&self) -> PayloadResidency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PayloadResidency
impl Debug for PayloadResidency
Source§impl<'de> Deserialize<'de> for PayloadResidency
impl<'de> Deserialize<'de> for PayloadResidency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PayloadResidency
impl PartialEq for PayloadResidency
Source§impl Serialize for PayloadResidency
impl Serialize for PayloadResidency
impl StructuralPartialEq for PayloadResidency
Auto Trait Implementations§
impl Freeze for PayloadResidency
impl RefUnwindSafe for PayloadResidency
impl Send for PayloadResidency
impl Sync for PayloadResidency
impl Unpin for PayloadResidency
impl UnsafeUnpin for PayloadResidency
impl UnwindSafe for PayloadResidency
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