pub struct StreamId(pub u32);
Tuple Fields§
§0: u32
Implementations§
Source§impl StreamId
impl StreamId
Sourcepub const CONNECTION: Self
pub const CONNECTION: Self
Stream ID used for connection control frames
Sourcepub fn is_server_initiated(&self) -> bool
pub fn is_server_initiated(&self) -> bool
Server-initiated streams have even IDs
Trait Implementations§
Source§impl Ord for StreamId
impl Ord for StreamId
Source§impl PartialOrd for StreamId
impl PartialOrd for StreamId
impl Copy for StreamId
impl Eq for StreamId
impl StructuralPartialEq for StreamId
Auto Trait Implementations§
impl Freeze for StreamId
impl RefUnwindSafe for StreamId
impl Send for StreamId
impl Sync for StreamId
impl Unpin for StreamId
impl UnwindSafe for StreamId
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