pub struct SandboxApprovalHandler(pub Arc<dyn PermissionsApprovalHandler>);Expand description
A thin, Clone + Debug wrapper around
Arc<dyn PermissionsApprovalHandler> so
crate::tools::ToolContext (which derives both) can carry one as an
ambient field — mirroring the existing write_observer: Option<Arc<dyn WriteObserver>> precedent, except PermissionsApprovalHandler (a
pre-existing P5-1 public trait) doesn’t itself require Debug as a
supertrait, so this newtype supplies a placeholder Debug impl instead
of widening that trait’s contract for every existing implementor.
Tuple Fields§
§0: Arc<dyn PermissionsApprovalHandler>Trait Implementations§
Source§impl Clone for SandboxApprovalHandler
impl Clone for SandboxApprovalHandler
Source§fn clone(&self) -> SandboxApprovalHandler
fn clone(&self) -> SandboxApprovalHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SandboxApprovalHandler
impl Debug for SandboxApprovalHandler
Auto Trait Implementations§
impl !RefUnwindSafe for SandboxApprovalHandler
impl !UnwindSafe for SandboxApprovalHandler
impl Freeze for SandboxApprovalHandler
impl Send for SandboxApprovalHandler
impl Sync for SandboxApprovalHandler
impl Unpin for SandboxApprovalHandler
impl UnsafeUnpin for SandboxApprovalHandler
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