pub(super) struct Ptr<'a> {
key: Key,
store: &'a mut Store,
}
Expand description
“Pointer” to an entry in the store
Fields§
§key: Key
§store: &'a mut Store
Implementations§
Methods from Deref<Target = Stream>§
sourcepub fn is_pending_reset_expiration(&self) -> bool
pub fn is_pending_reset_expiration(&self) -> bool
Returns true if stream is currently being held for some time because of a local reset.
sourcepub fn is_send_ready(&self) -> bool
pub fn is_send_ready(&self) -> bool
Returns true if frames for this stream are ready to be sent over the wire
sourcepub fn is_released(&self) -> bool
pub fn is_released(&self) -> bool
Returns true if the stream is no longer in use
sourcepub fn is_canceled_interest(&self) -> bool
pub fn is_canceled_interest(&self) -> bool
Returns true when the consumer of the stream has dropped all handles (indicating no further interest in the stream) and the stream state is not actually closed.
In this case, a reset should be sent.
pub fn assign_capacity(&mut self, capacity: u32, max_buffer_size: usize)
pub fn send_data(&mut self, len: u32, max_buffer_size: usize)
sourcepub fn notify_capacity(&mut self)
pub fn notify_capacity(&mut self)
If the capacity was limited because of the max_send_buffer_size, then consider waking the send task again…
sourcepub fn dec_content_length(&mut self, len: usize) -> Result<(), ()>
pub fn dec_content_length(&mut self, len: usize) -> Result<(), ()>
Returns Err
when the decrement cannot be completed due to overflow.
pub fn ensure_content_length_zero(&self) -> Result<(), ()>
pub fn notify_send(&mut self)
pub fn wait_send(&mut self, cx: &Context<'_>)
pub fn notify_recv(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Ptr<'a>
impl<'a> RefUnwindSafe for Ptr<'a>
impl<'a> Send for Ptr<'a>
impl<'a> Sync for Ptr<'a>
impl<'a> Unpin for Ptr<'a>
impl<'a> !UnwindSafe for Ptr<'a>
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