pub struct MockVerifierService { /* private fields */ }
Implementations§
Source§impl MockVerifierService
impl MockVerifierService
Sourcepub fn new(hook: impl Hook + 'static) -> Self
pub fn new(hook: impl Hook + 'static) -> Self
Creates a new MockVerifierService with a given callback to run per call to the service.
Sourcepub fn spawn_blobfs_verifier_service(
self: Arc<Self>,
) -> (BlobfsVerifierProxy, Task<()>)
pub fn spawn_blobfs_verifier_service( self: Arc<Self>, ) -> (BlobfsVerifierProxy, Task<()>)
Spawns an fasync::Task
which serves fuchsia.update.verify/BlobfsVerifier.
Sourcepub fn spawn_netstack_verifier_service(
self: Arc<Self>,
) -> (NetstackVerifierProxy, Task<()>)
pub fn spawn_netstack_verifier_service( self: Arc<Self>, ) -> (NetstackVerifierProxy, Task<()>)
Spawns an fasync::Task
which serves fuchsia.update.verify/NetstackVerifier.
Sourcepub async fn run_blobfs_verifier_service(
self: Arc<Self>,
stream: BlobfsVerifierRequestStream,
)
pub async fn run_blobfs_verifier_service( self: Arc<Self>, stream: BlobfsVerifierRequestStream, )
Serves fuchsia.update.verify/BlobfsVerifier.Verify requests on the given request stream.
Sourcepub async fn run_netstack_verifier_service(
self: Arc<Self>,
stream: NetstackVerifierRequestStream,
)
pub async fn run_netstack_verifier_service( self: Arc<Self>, stream: NetstackVerifierRequestStream, )
Serves fuchsia.update.verify/NetstackVerifier.Verify requests on the given request stream.
Sourcepub fn spawn_healthcheck_service(self: Arc<Self>) -> (VerifierProxy, Task<()>)
pub fn spawn_healthcheck_service(self: Arc<Self>) -> (VerifierProxy, Task<()>)
Spawns an fasync::Task
which serves fuchsia.update.verify service.
Sourcepub async fn run_healthcheck_service(
self: Arc<Self>,
stream: VerifierRequestStream,
)
pub async fn run_healthcheck_service( self: Arc<Self>, stream: VerifierRequestStream, )
Serves fuchsia.update.verify/Verifier.Verify
Auto Trait Implementations§
impl Freeze for MockVerifierService
impl !RefUnwindSafe for MockVerifierService
impl Send for MockVerifierService
impl Sync for MockVerifierService
impl Unpin for MockVerifierService
impl !UnwindSafe for MockVerifierService
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