pub struct FramedConn { /* private fields */ }Expand description
A framed wrapper that can send and receive larger messages than the base connection.
If a message is under the frame limit, it is just sent.
If a message is OVER the frame limit, we instead request a permit to send the frame count to the remote peer. We only begin sending frames once we receive the permit to do so.
This allows individual peers to throttle the amount of pending-completion message memory they are allocating by only issuing permits up to a configured memory threshold.
Implementations§
Source§impl FramedConn
impl FramedConn
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FramedConn
impl !RefUnwindSafe for FramedConn
impl Send for FramedConn
impl Sync for FramedConn
impl Unpin for FramedConn
impl !UnwindSafe for FramedConn
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