Struct edge_raw::io::Udp2RawStack

source ·
pub struct Udp2RawStack<T, const N: usize = 1500>(/* private fields */)
where
    T: RawStack;

Implementations§

source§

impl<T, const N: usize> Udp2RawStack<T, N>
where T: RawStack,

source

pub const fn new(stack: T, interface: u32) -> Self

Trait Implementations§

source§

impl<T, const N: usize> UdpStack for Udp2RawStack<T, N>
where T: RawStack,

§

type Error = Error<<T as RawStack>::Error>

Error type returned on socket creation failure.
§

type Connected = ConnectedUdp2RawSocket<<T as RawStack>::Socket, N>

Eventual socket return type of the [.connect()] method
§

type UniquelyBound = UnconnectedUdp2RawSocket<<T as RawStack>::Socket, N>

Eventual socket return type of the [.bind_single()] method
§

type MultiplyBound = UnconnectedUdp2RawSocket<<T as RawStack>::Socket, N>

Eventual return type of the [.bind_multiple()] method
source§

async fn connect_from( &self, local: SocketAddr, remote: SocketAddr ) -> Result<(SocketAddr, Self::Connected), Self::Error>

Create a socket that has a fixed remote address. Read more
source§

async fn bind_single( &self, local: SocketAddr ) -> Result<(SocketAddr, Self::UniquelyBound), Self::Error>

Create a socket that has a fixed local address. Read more
source§

async fn bind_multiple( &self, local: SocketAddr ) -> Result<Self::MultiplyBound, Self::Error>

Create a socket that has no single fixed local address. Read more
source§

async fn connect( &self, remote: SocketAddr ) -> Result<(SocketAddr, Self::Connected), Self::Error>

Create a socket that has a fixed remote address. Read more

Auto Trait Implementations§

§

impl<T, const N: usize> RefUnwindSafe for Udp2RawStack<T, N>
where T: RefUnwindSafe,

§

impl<T, const N: usize> Send for Udp2RawStack<T, N>
where T: Send,

§

impl<T, const N: usize> Sync for Udp2RawStack<T, N>
where T: Sync,

§

impl<T, const N: usize> Unpin for Udp2RawStack<T, N>
where T: Unpin,

§

impl<T, const N: usize> UnwindSafe for Udp2RawStack<T, N>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.