pub struct TriangleCountServiceHandle(/* private fields */);Expand description
Registry handle for a TriangleCountService.
Implementations§
Source§impl TriangleCountServiceHandle
impl TriangleCountServiceHandle
Sourcepub fn new(service: Arc<dyn TriangleCountService>) -> Self
pub fn new(service: Arc<dyn TriangleCountService>) -> Self
Wraps a trusted triangle-count service.
Sourcepub fn count_triangles(
&self,
object: &ObjectId,
) -> Result<TriangleCount, TriangleCountError>
pub fn count_triangles( &self, object: &ObjectId, ) -> Result<TriangleCount, TriangleCountError>
The triangle count of object. A count naming another object is
refused.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TriangleCountServiceHandle
impl !UnwindSafe for TriangleCountServiceHandle
impl Freeze for TriangleCountServiceHandle
impl Send for TriangleCountServiceHandle
impl Sync for TriangleCountServiceHandle
impl Unpin for TriangleCountServiceHandle
impl UnsafeUnpin for TriangleCountServiceHandle
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