pub struct VerticalExtentServiceHandle(/* private fields */);Expand description
Registry handle for a VerticalExtentService.
Implementations§
Source§impl VerticalExtentServiceHandle
impl VerticalExtentServiceHandle
Sourcepub fn new(service: Arc<dyn VerticalExtentService>) -> Self
pub fn new(service: Arc<dyn VerticalExtentService>) -> Self
Wraps a trusted vertical-extent service.
Sourcepub fn measure_vertical_extent(
&self,
object: &ObjectId,
) -> Result<VerticalExtent, VerticalExtentError>
pub fn measure_vertical_extent( &self, object: &ObjectId, ) -> Result<VerticalExtent, VerticalExtentError>
The vertical extent of object. An extent naming another object
answers a different question and is refused.
Sourcepub fn measure_directional_extent(
&self,
object: &ObjectId,
direction: MetricDirection,
) -> Result<DirectionalExtent, VerticalExtentError>
pub fn measure_directional_extent( &self, object: &ObjectId, direction: MetricDirection, ) -> Result<DirectionalExtent, VerticalExtentError>
The extent of object along direction. An extent naming another
object or another direction answers a different question and is
refused.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VerticalExtentServiceHandle
impl !UnwindSafe for VerticalExtentServiceHandle
impl Freeze for VerticalExtentServiceHandle
impl Send for VerticalExtentServiceHandle
impl Sync for VerticalExtentServiceHandle
impl Unpin for VerticalExtentServiceHandle
impl UnsafeUnpin for VerticalExtentServiceHandle
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