pub struct ObjectFrameServiceHandle(/* private fields */);Expand description
Registry handle for an ObjectFrameService.
Implementations§
Source§impl ObjectFrameServiceHandle
impl ObjectFrameServiceHandle
Sourcepub fn new(service: Arc<dyn ObjectFrameService>) -> Self
pub fn new(service: Arc<dyn ObjectFrameService>) -> Self
Wraps a trusted object-frame service.
Sourcepub fn object_frame(
&self,
object: &ObjectId,
) -> Result<ObjectFrame, ObjectFrameError>
pub fn object_frame( &self, object: &ObjectId, ) -> Result<ObjectFrame, ObjectFrameError>
The frame of object. Objects of an uncovered source are refused,
and so is a frame of another object.
Sourcepub fn leaves(&self, door: &ObjectId) -> Result<DoorLeaves, DoorLeavesError>
pub fn leaves(&self, door: &ObjectId) -> Result<DoorLeaves, DoorLeavesError>
The leaves of door, a door or a window. Objects of an uncovered
source are refused, and so are leaves of another object.
Trait Implementations§
Source§impl Clone for ObjectFrameServiceHandle
impl Clone for ObjectFrameServiceHandle
Source§impl SnapshotBoundService for ObjectFrameServiceHandle
impl SnapshotBoundService for ObjectFrameServiceHandle
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 ObjectFrameServiceHandle
impl !UnwindSafe for ObjectFrameServiceHandle
impl Freeze for ObjectFrameServiceHandle
impl Send for ObjectFrameServiceHandle
impl Sync for ObjectFrameServiceHandle
impl Unpin for ObjectFrameServiceHandle
impl UnsafeUnpin for ObjectFrameServiceHandle
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