pub struct StreamState {
pub credits: Credits,
pub data_buffer: VecDeque<Data>,
pub data: Receiver<Frame>,
pub send_task: Option<Task>,
pub recv_task: Option<Task>,
}Expand description
Data structure tracking an individual stream
Fields§
§credits: Credits§data_buffer: VecDeque<Data>§data: Receiver<Frame>§send_task: Option<Task>§recv_task: Option<Task>Implementations§
Source§impl StreamState
impl StreamState
pub fn notify_data_rx(&mut self)
pub fn notify_data_tx(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamState
impl !RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl !UnwindSafe for StreamState
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