pub struct FreeSpaceServiceHandle(/* private fields */);Implementations§
Source§impl FreeSpaceServiceHandle
impl FreeSpaceServiceHandle
pub fn new(service: Arc<dyn FreeSpaceService>) -> Self
pub fn assess_clearance( &self, request: &ClearanceRequest, ) -> Result<ClearanceOutcome, FreeSpaceError>
pub fn find_placement( &self, request: &PlacementRequest, ) -> Result<PlacementOutcome, FreeSpaceError>
pub fn measure_free_area( &self, request: &FreeAreaRequest, ) -> Result<FreeAreaEvidence, FreeSpaceError>
pub fn assess_containment( &self, request: &ContainmentRequest, ) -> Result<ContainmentOutcome, FreeSpaceError>
Source§impl FreeSpaceServiceHandle
impl FreeSpaceServiceHandle
Sourcepub fn assess_support_coverage(
&self,
request: &SupportCoverageRequest,
) -> Result<SupportCoverageOutcome, FreeSpaceError>
pub fn assess_support_coverage( &self, request: &SupportCoverageRequest, ) -> Result<SupportCoverageOutcome, FreeSpaceError>
Whether the supports’ tops hold the footprint; an answer to another request is refused.
§Errors
The backend’s refusal, or FreeSpaceError::ResponseRequestMismatch.
Sourcepub fn map_circulation(
&self,
request: &CirculationRequest,
) -> Result<CirculationMap, FreeSpaceError>
pub fn map_circulation( &self, request: &CirculationRequest, ) -> Result<CirculationMap, FreeSpaceError>
Maps circulation and checks that the map answers request.
§Errors
The backend’s refusal, or FreeSpaceError::ResponseRequestMismatch
for a map of another request.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FreeSpaceServiceHandle
impl !UnwindSafe for FreeSpaceServiceHandle
impl Freeze for FreeSpaceServiceHandle
impl Send for FreeSpaceServiceHandle
impl Sync for FreeSpaceServiceHandle
impl Unpin for FreeSpaceServiceHandle
impl UnsafeUnpin for FreeSpaceServiceHandle
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