pub struct PayloadCredit(/* private fields */);Expand description
A held share of the session payload quota.
Obtained from CallResult::take_payload_credit by a caller that wants
the quota released later than the CallResult it came from — typically
because the deserialized response is potentially large. Holding it
prevents it being returned to the server’s pool, limited by
Builder::max_outstanding_payload()
Implementations§
Source§impl PayloadCredit
impl PayloadCredit
Auto Trait Implementations§
impl !RefUnwindSafe for PayloadCredit
impl !UnwindSafe for PayloadCredit
impl Freeze for PayloadCredit
impl Send for PayloadCredit
impl Sync for PayloadCredit
impl Unpin for PayloadCredit
impl UnsafeUnpin for PayloadCredit
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