pub struct IPv6Packet {
pub payload_length: u16,
pub next_header: u8,
pub hop_limit: u8,
pub src: u128,
pub dst: u128,
pub payload: PacketPayload,
}
Expand description
A struct detailing an IPv6Packet https://en.wikipedia.org/wiki/IPv6
Fields§
§payload_length: u16
§next_header: u8
§hop_limit: u8
§src: u128
§dst: u128
§payload: PacketPayload
Trait Implementations§
Source§impl Debug for IPv6Packet
impl Debug for IPv6Packet
Source§impl From<&[u8]> for IPv6Packet
Convert bytes into an IPv6Packet
impl From<&[u8]> for IPv6Packet
Convert bytes into an IPv6Packet
Source§impl From<&IPv6Packet> for Vec<u8>
Convert an IPv6Packet into bytes
impl From<&IPv6Packet> for Vec<u8>
Convert an IPv6Packet into bytes
Source§fn from(packet: &IPv6Packet) -> Self
fn from(packet: &IPv6Packet) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IPv6Packet
impl RefUnwindSafe for IPv6Packet
impl Send for IPv6Packet
impl Sync for IPv6Packet
impl Unpin for IPv6Packet
impl UnwindSafe for IPv6Packet
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
].