Struct icmp_socket::socket::IcmpSocket6 [−][src]
An Icmpv6 socket.
Implementations
impl IcmpSocket6
[src]
pub fn new() -> Result<Self>
[src]
Construct a new socket. The socket must be bound to an address using bind_to
before it can be used to send and receive packets.
Trait Implementations
impl IcmpSocket for IcmpSocket6
[src]
type AddrType = Ipv6Addr
The type of address this socket operates on.
type PacketType = Icmpv6Packet
The type of packet this socket handles.
fn set_max_hops(&mut self, hops: u32)
[src]
fn bind<A: Into<Self::AddrType>>(&mut self, addr: A) -> Result<()>
[src]
fn send_to(
&mut self,
dest: Self::AddrType,
mut packet: Self::PacketType
) -> Result<()>
[src]
&mut self,
dest: Self::AddrType,
mut packet: Self::PacketType
) -> Result<()>
fn rcv_from(&mut self) -> Result<(Self::PacketType, SockAddr)>
[src]
fn set_timeout(&mut self, timeout: Duration) -> Result<()>
[src]
impl TryFrom<Ipv6Addr> for IcmpSocket6
[src]
Auto Trait Implementations
impl RefUnwindSafe for IcmpSocket6
[src]
impl Send for IcmpSocket6
[src]
impl Sync for IcmpSocket6
[src]
impl Unpin for IcmpSocket6
[src]
impl UnwindSafe for IcmpSocket6
[src]
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,
pub 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.
pub 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>,