pub struct SafeExecutor { /* private fields */ }Expand description
Phase D: Safe wrapper for concurrent operations
Implementations§
Source§impl SafeExecutor
impl SafeExecutor
pub fn new() -> Self
Sourcepub async fn execute_safe<F, Fut, T>(
&self,
actor: &str,
operation: &str,
resource: &Cid,
cap_check: F,
) -> Result<T, ConcurError>
pub async fn execute_safe<F, Fut, T>( &self, actor: &str, operation: &str, resource: &Cid, cap_check: F, ) -> Result<T, ConcurError>
Execute operation with full Own+CFA safety
Auto Trait Implementations§
impl !RefUnwindSafe for SafeExecutor
impl !UnwindSafe for SafeExecutor
impl Freeze for SafeExecutor
impl Send for SafeExecutor
impl Sync for SafeExecutor
impl Unpin for SafeExecutor
impl UnsafeUnpin for SafeExecutor
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