[−][src]Struct pnet_transport::TransportSender
Structure used for sending at the transport layer. Should be created with transport_channel()
.
Fields
socket: Arc<FileDesc>
Methods
impl TransportSender
[src]
pub fn send_to<T: Packet>(
&mut self,
packet: T,
destination: IpAddr
) -> Result<usize>
[src]
&mut self,
packet: T,
destination: IpAddr
) -> Result<usize>
Send a packet to the provided destination.
pub fn set_ttl(&mut self, time_to_live: u8) -> Result<()>
[src]
Sets a time-to-live on the socket, which then applies for all packets sent.
Auto Trait Implementations
impl RefUnwindSafe for TransportSender
impl Send for TransportSender
impl Sync for TransportSender
impl Unpin for TransportSender
impl UnwindSafe for TransportSender
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>,