struct PendingGuard {
pending: Arc<Mutex<HashMap<String, Sender<Result<Value, Error>>>>>,
request_id: String,
defused: bool,
}Expand description
Removes a pending_controls entry when the awaiting future is
dropped without a response having been routed - the drop guard
send_control parks in its future.
Fields§
§pending: Arc<Mutex<HashMap<String, Sender<Result<Value, Error>>>>>§request_id: String§defused: boolTrait Implementations§
Source§impl Drop for PendingGuard
impl Drop for PendingGuard
Auto Trait Implementations§
impl !RefUnwindSafe for PendingGuard
impl !UnwindSafe for PendingGuard
impl Freeze for PendingGuard
impl Send for PendingGuard
impl Sync for PendingGuard
impl Unpin for PendingGuard
impl UnsafeUnpin for PendingGuard
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