pub struct StreamInit {
pub protocol_id: ProtocolID,
}Expand description
First message on any new QUIC stream - identifies which protocol it serves.
Fields§
§protocol_id: ProtocolIDTrait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for StreamInit
impl<'__de, __Context> BorrowDecode<'__de, __Context> for StreamInit
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for StreamInit
impl Clone for StreamInit
Source§fn clone(&self) -> StreamInit
fn clone(&self) -> StreamInit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamInit
impl Debug for StreamInit
Source§impl<__Context> Decode<__Context> for StreamInit
impl<__Context> Decode<__Context> for StreamInit
Auto Trait Implementations§
impl Freeze for StreamInit
impl RefUnwindSafe for StreamInit
impl Send for StreamInit
impl Sync for StreamInit
impl Unpin for StreamInit
impl UnsafeUnpin for StreamInit
impl UnwindSafe for StreamInit
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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