pub struct Permit { /* private fields */ }Expand description
Permission to make one call. Report the outcome, or drop it to report nothing.
Dropping without reporting gives the permit back and records no data point. That is the honest answer for a call that was cancelled: it says nothing about the upstream, and holding the permit would wedge a half-open circuit that can then neither close nor open.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Permit
impl !UnwindSafe for Permit
impl Freeze for Permit
impl Send for Permit
impl Sync for Permit
impl Unpin for Permit
impl UnsafeUnpin for Permit
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