[−][src]Struct packet_crafter::headers::TcpHeader
Methods
impl TcpHeader
[src]
pub fn get_src_port(&self) -> &u16
[src]
pub fn get_dst_port(&self) -> &u16
[src]
pub fn get_flags(&self) -> &u8
[src]
pub fn get_window(&self) -> &u16
[src]
pub fn get_pseudo_header_set(&self) -> &bool
[src]
impl TcpHeader
[src]
pub fn set_src_port(&mut self, v: u16)
[src]
pub fn set_dst_port(&mut self, v: u16)
[src]
pub fn set_flags(&mut self, v: u8)
[src]
pub fn set_window(&mut self, v: u16)
[src]
impl TcpHeader
[src]
Trait Implementations
impl Header for TcpHeader
[src]
fn make(self) -> PacketData
[src]
fn parse(raw_data: &[u8]) -> Result<Box<Self>, ParseError>
[src]
fn get_proto(&self) -> Protocol
[src]
fn get_length(&self) -> u8
[src]
fn get_min_length() -> u8
[src]
fn into_transport_header(&mut self) -> Option<&mut dyn TransportHeader>
[src]
impl TransportHeader for TcpHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for TcpHeader
impl Send for TcpHeader
impl Sync for TcpHeader
impl Unpin for TcpHeader
impl UnwindSafe for TcpHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,