pub struct StreamId(/* private fields */);Expand description
Stream id.
Implementations§
Source§impl StreamId
impl StreamId
Sourcepub const fn is_bidirectional(self) -> bool
pub const fn is_bidirectional(self) -> bool
Checks whether a stream is bi-directional or not.
Sourcepub const fn is_client_initiated(self) -> bool
pub const fn is_client_initiated(self) -> bool
Checks whether a stream is client-initiated or not.
Sourcepub const fn is_local(self, is_server: bool) -> bool
pub const fn is_local(self, is_server: bool) -> bool
Checks whether a stream is locally initiated or not.
Sourcepub const fn into_varint(self) -> VarInt
pub const fn into_varint(self) -> VarInt
Returns the stream id as VarInt value.
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