pub struct Credit<'a, TX>(/* private fields */);Expand description
Exclusive access to the flow control limit.
As mentioned in the ArcSendControler::credit method,
the flow controller in the period between obtaining flow control
and finally updating(or maybe not) the flow control should be exclusive.
Implementations§
Auto Trait Implementations§
impl<'a, TX> Freeze for Credit<'a, TX>
impl<'a, TX> RefUnwindSafe for Credit<'a, TX>
impl<'a, TX> !Send for Credit<'a, TX>
impl<'a, TX> Sync for Credit<'a, TX>where
TX: Sync,
impl<'a, TX> Unpin for Credit<'a, TX>
impl<'a, TX> UnwindSafe for Credit<'a, TX>
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