pub struct NoopDeliveryHandler;Expand description
A no-op DeliveryHandler for sessions that do not run a kernel pager or verify blobs
(such as intermediate partition mapping sessions).
Trait Implementations§
Source§impl DeliveryHandler for NoopDeliveryHandler
impl DeliveryHandler for NoopDeliveryHandler
type Request = NullPageRequest
Source§fn get_page_request(
self: &Arc<Self>,
_key: u64,
_range: Range<u64>,
) -> NullPageRequest
fn get_page_request( self: &Arc<Self>, _key: u64, _range: Range<u64>, ) -> NullPageRequest
Produces a
PageRequest to receive decompressed or uncompressed page data.Source§fn get_child_page_request(
self: &Arc<Self>,
_child_key: u64,
_child_target_offset: u64,
_parent_byte_range: Range<u64>,
) -> Self::Request
fn get_child_page_request( self: &Arc<Self>, _child_key: u64, _child_target_offset: u64, _parent_byte_range: Range<u64>, ) -> Self::Request
Produces a
PageRequest to receive parent file data for a child file mapping. Read moreSource§fn deliver_child_inline_tail(
self: &Arc<Self>,
_parent_byte_offset: u64,
_child_key: u64,
_child_target_offset: u64,
_tail_length: u32,
)
fn deliver_child_inline_tail( self: &Arc<Self>, _parent_byte_offset: u64, _child_key: u64, _child_target_offset: u64, _tail_length: u32, )
Enqueues a header-only
ChildInlineTail command instructing the downstream verifier to
supply a single inline-tail page at child_target_offset in child_key by copying
tail_length bytes directly from parent_byte_offset in the verified parent VMO.Source§fn deliver_child_sparse(
&self,
_child_key: u64,
_child_target_offset: u64,
_child_length: u64,
) -> Result<(), Error>
fn deliver_child_sparse( &self, _child_key: u64, _child_target_offset: u64, _child_length: u64, ) -> Result<(), Error>
Delivers a sparse (zero-filled) range of
child_length bytes at child_target_offset in
child_key.Source§fn register_blob(
&self,
_key: u64,
_merkle_leaves: &[[u8; 32]],
_read_alignment: usize,
) -> Result<(), Error>
fn register_blob( &self, _key: u64, _merkle_leaves: &[[u8; 32]], _read_alignment: usize, ) -> Result<(), Error>
Registers a blob’s Merkle tree leaf hashes and delivery read alignment with the
downstream verifier.
Source§fn unregister_file(&self, _key: u64)
fn unregister_file(&self, _key: u64)
Unregisters a file when it is closed.
Auto Trait Implementations§
impl Freeze for NoopDeliveryHandler
impl RefUnwindSafe for NoopDeliveryHandler
impl Send for NoopDeliveryHandler
impl Sync for NoopDeliveryHandler
impl Unpin for NoopDeliveryHandler
impl UnsafeUnpin for NoopDeliveryHandler
impl UnwindSafe for NoopDeliveryHandler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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