pub struct ClassificationServiceHandle(/* private fields */);Expand description
Cloneable, type-erased classification service registered by an adapter.
Implementations§
Source§impl ClassificationServiceHandle
impl ClassificationServiceHandle
Sourcepub fn new(service: Arc<dyn ClassificationService>) -> Self
pub fn new(service: Arc<dyn ClassificationService>) -> Self
Wraps a trusted classification service.
Sourcepub fn classifications(
&self,
object: &ObjectId,
) -> Result<Vec<ClassificationAssignment>, ClassificationError>
pub fn classifications( &self, object: &ObjectId, ) -> Result<Vec<ClassificationAssignment>, ClassificationError>
Answers for one object, refusing sources the service does not cover.
Trait Implementations§
Source§impl Clone for ClassificationServiceHandle
impl Clone for ClassificationServiceHandle
Source§impl SnapshotBoundService for ClassificationServiceHandle
impl SnapshotBoundService for ClassificationServiceHandle
Source§fn source_snapshots(&self) -> &[SourceSnapshot]
fn source_snapshots(&self) -> &[SourceSnapshot]
Exact source snapshots used to construct this service.
Auto Trait Implementations§
impl !RefUnwindSafe for ClassificationServiceHandle
impl !UnwindSafe for ClassificationServiceHandle
impl Freeze for ClassificationServiceHandle
impl Send for ClassificationServiceHandle
impl Sync for ClassificationServiceHandle
impl Unpin for ClassificationServiceHandle
impl UnsafeUnpin for ClassificationServiceHandle
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