pub struct StreamType(/* private fields */);Available on crate feature
h3 only.Implementations§
Source§impl StreamType
impl StreamType
pub const CONTROL: StreamType
pub const PUSH: StreamType
pub const ENCODER: StreamType
pub const DECODER: StreamType
pub const WEBTRANSPORT_BIDI: StreamType
pub const WEBTRANSPORT_UNI: StreamType
Source§impl StreamType
impl StreamType
pub const MAX_ENCODED_SIZE: usize = 8usize
pub fn value(&self) -> u64
Sourcepub fn grease() -> StreamType
pub fn grease() -> StreamType
returns a StreamType type with random number of the 0x1f * N + 0x21 format within the range of the Varint implementation
pub fn from_value(value: u64) -> StreamType
Trait Implementations§
Source§impl Clone for StreamType
impl Clone for StreamType
Source§fn clone(&self) -> StreamType
fn clone(&self) -> StreamType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamType
impl Debug for StreamType
Source§impl Decode for StreamType
impl Decode for StreamType
fn decode<B>(buf: &mut B) -> Result<StreamType, UnexpectedEnd>where
B: Buf,
Source§impl Display for StreamType
impl Display for StreamType
Source§impl<B> From<StreamType> for WriteBuf<B>where
B: Buf,
impl<B> From<StreamType> for WriteBuf<B>where
B: Buf,
Source§fn from(ty: StreamType) -> WriteBuf<B>
fn from(ty: StreamType) -> WriteBuf<B>
Converts to this type from the input type.
Source§impl PartialEq for StreamType
impl PartialEq for StreamType
impl Eq for StreamType
impl StructuralPartialEq for StreamType
Auto Trait Implementations§
impl Freeze for StreamType
impl RefUnwindSafe for StreamType
impl Send for StreamType
impl Sync for StreamType
impl Unpin for StreamType
impl UnwindSafe for StreamType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more