Skip to main content

SelectionStorage

Struct SelectionStorage 

Source
pub struct SelectionStorage<'a> {
    pub wants: &'a mut [ObjectId],
    pub objects: &'a mut [Option<ValidationMetadata>],
    pub indices: &'a mut [usize],
    pub read: &'a mut [u8],
    pub parse: &'a mut [u8],
    pub graph_read_limit: u64,
}
Expand description

Independent per-request storage for bounded reachable-object selection. wants bounds distinct wanted IDs. objects and indices each need the repository’s complete object count; their extra slots remain untouched. Read/parse scratch budgets match ValidatedRepository::select_objects.

Fields§

§wants: &'a mut [ObjectId]§objects: &'a mut [Option<ValidationMetadata>]§indices: &'a mut [usize]§read: &'a mut [u8]§parse: &'a mut [u8]§graph_read_limit: u64

Maximum structural bytes read while traversing a request’s graph.

Implementations§

Source§

impl SelectionStorage<'_>

Source

pub fn reborrow(&mut self) -> SelectionStorage<'_>

Borrow the same arrays for one request without moving the host descriptor.

Auto Trait Implementations§

§

impl<'a> !UnwindSafe for SelectionStorage<'a>

§

impl<'a> Freeze for SelectionStorage<'a>

§

impl<'a> RefUnwindSafe for SelectionStorage<'a>

§

impl<'a> Send for SelectionStorage<'a>

§

impl<'a> Sync for SelectionStorage<'a>

§

impl<'a> Unpin for SelectionStorage<'a>

§

impl<'a> UnsafeUnpin for SelectionStorage<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.