pub struct StreamId(pub u8);Expand description
StreamId. Werte:
0=STREAMID_NONE(Spec §8.3.5.11/12: ACKNACK/HEARTBEAT/ TIMESTAMP nutzen den NONE-Stream).1..=127= best-effort.128..=255= reliable.
Tuple Fields§
§0: u8Implementations§
Source§impl StreamId
impl StreamId
Sourcepub const BUILTIN_BEST_EFFORT: Self
pub const BUILTIN_BEST_EFFORT: Self
STREAMID_BUILTIN_BEST_EFFORTS (Spec §8.3.2.2).
Sourcepub const BUILTIN_RELIABLE: Self
pub const BUILTIN_RELIABLE: Self
STREAMID_BUILTIN_RELIABLE (Spec §8.3.2.2).
Sourcepub fn is_reliable(self) -> bool
pub fn is_reliable(self) -> bool
true fuer reliable Streams (id >= 128).
Sourcepub fn is_best_effort(self) -> bool
pub fn is_best_effort(self) -> bool
true fuer best-effort Streams (1..=127).
Trait Implementations§
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 UnsafeUnpin 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