pub struct TestVmoProvider { /* private fields */ }Expand description
A simple in-memory DeliveryQueueProvider for testing delivery without Merkle verification.
Implementations§
Source§impl TestVmoProvider
impl TestVmoProvider
pub fn new(pager: Arc<Pager>, delivery_vmo: Vmo) -> Self
pub fn delivery_vmo(&self) -> &Vmo
pub fn register_vmo(&self, key: u64, vmo: Vmo)
pub fn unregister_vmo(&self, key: u64)
Trait Implementations§
Source§impl DeliveryQueueProvider for TestVmoProvider
impl DeliveryQueueProvider for TestVmoProvider
Source§fn deliver_pages(
&self,
key: u64,
target_offset: u64,
unverified_pages: UnverifiedPages<'_>,
) -> Result<(), Error>
fn deliver_pages( &self, key: u64, target_offset: u64, unverified_pages: UnverifiedPages<'_>, ) -> Result<(), Error>
Delivers data directly from the delivery VMO into the target blob.
Source§fn register_blob(
&self,
key: u64,
leaf_data: PtrByteSlice<'_>,
) -> Result<(), Error>
fn register_blob( &self, key: u64, leaf_data: PtrByteSlice<'_>, ) -> Result<(), Error>
Handles a RegisterBlob command using a pointer slice to shared memory.
Auto Trait Implementations§
impl !Freeze for TestVmoProvider
impl !RefUnwindSafe for TestVmoProvider
impl Send for TestVmoProvider
impl Sync for TestVmoProvider
impl Unpin for TestVmoProvider
impl UnsafeUnpin for TestVmoProvider
impl UnwindSafe for TestVmoProvider
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§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