pub enum StreamHeaders {
Request(StreamRequestHeaders),
Response(StreamResponseHeaders),
}Variants§
Request(StreamRequestHeaders)
Response(StreamResponseHeaders)
Implementations§
Source§impl StreamHeaders
impl StreamHeaders
pub fn from_request<B>( stream_id: u64, req: &Request<B>, ) -> Result<Self, EncodeError>
pub fn from_response<B>( stream_id: u64, resp: &Response<B>, ) -> Result<Self, EncodeError>
pub fn from_packed_request(stream_id: u64, req: PackedRequest) -> Self
pub fn from_packed_response(stream_id: u64, resp: PackedResponse) -> Self
Trait Implementations§
Source§impl Clone for StreamHeaders
impl Clone for StreamHeaders
Source§fn clone(&self) -> StreamHeaders
fn clone(&self) -> StreamHeaders
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 StreamHeaders
impl Debug for StreamHeaders
Source§impl PartialEq for StreamHeaders
impl PartialEq for StreamHeaders
impl Eq for StreamHeaders
impl StructuralPartialEq for StreamHeaders
Auto Trait Implementations§
impl Freeze for StreamHeaders
impl RefUnwindSafe for StreamHeaders
impl Send for StreamHeaders
impl Sync for StreamHeaders
impl Unpin for StreamHeaders
impl UnwindSafe for StreamHeaders
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