pub struct BoundaryCoverageServiceHandle(/* private fields */);Expand description
Registry handle for a BoundaryCoverageService.
Implementations§
Source§impl BoundaryCoverageServiceHandle
impl BoundaryCoverageServiceHandle
Sourcepub fn new(service: Arc<dyn BoundaryCoverageService>) -> Self
pub fn new(service: Arc<dyn BoundaryCoverageService>) -> Self
Wraps a trusted boundary-coverage service.
Sourcepub fn measure_boundary_coverage(
&self,
request: &BoundaryCoverageRequest,
) -> Result<BoundaryCoverage, BoundaryCoverageError>
pub fn measure_boundary_coverage( &self, request: &BoundaryCoverageRequest, ) -> Result<BoundaryCoverage, BoundaryCoverageError>
The coverage request asks for. An answer bound to another request
is refused.
§Errors
Returns the service’s refusal, or
BoundaryCoverageError::InvalidMeasurement for an answer to another
request.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BoundaryCoverageServiceHandle
impl !UnwindSafe for BoundaryCoverageServiceHandle
impl Freeze for BoundaryCoverageServiceHandle
impl Send for BoundaryCoverageServiceHandle
impl Sync for BoundaryCoverageServiceHandle
impl Unpin for BoundaryCoverageServiceHandle
impl UnsafeUnpin for BoundaryCoverageServiceHandle
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