pub struct ThreadIsolation { /* private fields */ }
Expand description
Thread isolation boundaries and sandboxing.
Implementations§
Source§impl ThreadIsolation
impl ThreadIsolation
pub fn new() -> Self
Sourcepub fn create_domain(
&mut self,
thread_id: ThreadId,
config: IsolationConfig,
) -> Result<(), ThreadError>
pub fn create_domain( &mut self, thread_id: ThreadId, config: IsolationConfig, ) -> Result<(), ThreadError>
Create new isolation domain for thread.
Sourcepub fn check_access(
&self,
accessor_id: ThreadId,
target_id: ThreadId,
access_type: AccessType,
) -> bool
pub fn check_access( &self, accessor_id: ThreadId, target_id: ThreadId, access_type: AccessType, ) -> bool
Check if thread access is allowed.
Sourcepub fn remove_domain(&mut self, thread_id: ThreadId)
pub fn remove_domain(&mut self, thread_id: ThreadId)
Remove thread from isolation domain.
Auto Trait Implementations§
impl !Freeze for ThreadIsolation
impl RefUnwindSafe for ThreadIsolation
impl Send for ThreadIsolation
impl Sync for ThreadIsolation
impl Unpin for ThreadIsolation
impl UnwindSafe for ThreadIsolation
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