pub fn take_last_priority_update(
        &mut self, prioritized_element_id: u64,
    ) -> Result<Vec<u8>> {
        if let Some(stream) = self.streams.get_mut(&prioritized_element_id) {
            return stream.take_last_priority_update().ok_or(Error::Done);
        }

        Err(Error::Done)
    }
/// Take the last PRIORITY_UPDATE for a prioritized element ID.
///
/// When the [`poll()`] method returns a [`PriorityUpdate`] event for a
/// prioritized element, the event has triggered and will not rearm until
/// applications call this method. It is recommended that applications defer
/// taking the PRIORITY_UPDATE until after [`poll()`] returns [`Done`].
///
/// On success the Priority Field Value is returned, or [`Done`] if there is
/// no PRIORITY_UPDATE to read (either because there is no value to take, or
/// because the prioritized element does not exist).
///
/// [`poll()`]: struct.Connection.html#method.poll
/// [`PriorityUpdate`]: enum.Event.html#variant.PriorityUpdate
/// [`Done`]: enum.Error.html#variant.Done
Take the last PRIORITY_UPDATE for a prioritized element ID.
When the [`poll()`] method returns a [`PriorityUpdate`] event for a
prioritized element, the event has triggered and will not rearm until
applications call this method. It is recommended that applications defer
taking the PRIORITY_UPDATE until after [`poll()`] returns [`Done`].

On success the Priority Field Value is returned, or [`Done`] if there is
no PRIORITY_UPDATE to read (either because there is no value to take, or
because the prioritized element does not exist).


Take the last PRIORITY_UPDATE for a prioritized element ID . When the [ ` poll () ` ] method returns a [ ` PriorityUpdate ` ] event for a prioritized element the event has triggered and will not rearm until applications call this method . It is recommended that applications defer taking the PRIORITY_UPDATE until after [ ` poll () ` ] returns [ ` Done ` ] . On success the Priority Field Value is returned or [ ` Done ` ] if there is no PRIORITY_UPDATE to read ( either because there is no value to take or because the prioritized element does not exist ) .
pub fn take_last_priority_update(
        &mut self, prioritized_element_id: u64,
    ) -> Result<Vec<u8>> {
        if let Some(stream) = self.streams.get_mut(&prioritized_element_id) {
            return stream.take_last_priority_update().ok_or(Error::Done);
        }
        Err(Error::Done)
    }
pub fn take_last_priority_update ( & mut self , prioritized_element_id : u64 , ) -> Result < Vec < u8 > > { if let Some ( stream ) = self . streams . get_mut ( & prioritized_element_id ) { return stream . take_last_priority_update ( ) . ok_or ( Error :: Done ) ; } Err ( Error :: Done ) }
Take the last PRIORITY_UPDATE for a prioritized element ID.
Take the last PRIORITY_UPDATE for a prioritized element ID .
&mut self
prioritized_element_id
u64
&mut self
prioritized_element_id
u64