pub struct PseudoHeaderV6 {
pub src: u128,
pub dst: u128,
pub upper_layer_packet_length: u32,
pub next_header: u8,
}
Expand description
Struct defining the IPv6 pseudo-header for checksum calculation.
Fields§
§src: u128
§dst: u128
§upper_layer_packet_length: u32
§next_header: u8
Trait Implementations§
Source§impl Debug for PseudoHeaderV6
impl Debug for PseudoHeaderV6
Source§impl From<&PseudoHeaderV6> for Vec<u8>
Converting PsuedoHeaderv6 to bytes
impl From<&PseudoHeaderV6> for Vec<u8>
Converting PsuedoHeaderv6 to bytes
Source§fn from(header: &PseudoHeaderV6) -> Self
fn from(header: &PseudoHeaderV6) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PseudoHeaderV6
impl RefUnwindSafe for PseudoHeaderV6
impl Send for PseudoHeaderV6
impl Sync for PseudoHeaderV6
impl Unpin for PseudoHeaderV6
impl UnwindSafe for PseudoHeaderV6
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].