Skip to main content

LocalAppHandle

Struct LocalAppHandle 

Source
pub struct LocalAppHandle<'a, const QUEUE: usize, const MTU: usize> { /* private fields */ }
Expand description

Application-side handle for sending to and receiving from the router.

Trait Implementations§

Source§

impl<'a, const QUEUE: usize, const MTU: usize> NetworkRead for LocalAppHandle<'a, QUEUE, MTU>

Source§

type Error = LocalLinkError

Error type for read operations.
Source§

async fn read(&mut self, buffer: &mut [u8]) -> Result<usize, Self::Error>

Reads a packet into the provided buffer, returning its length.
Source§

impl<'a, const QUEUE: usize, const MTU: usize> NetworkWrite for LocalAppHandle<'a, QUEUE, MTU>

Source§

type Error = LocalLinkError

Error type for write operations.
Source§

async fn write(&mut self, data: &[u8]) -> Result<(), Self::Error>

Writes a packet to the network.

Auto Trait Implementations§

§

impl<'a, const QUEUE: usize, const MTU: usize> Freeze for LocalAppHandle<'a, QUEUE, MTU>

§

impl<'a, const QUEUE: usize, const MTU: usize> !RefUnwindSafe for LocalAppHandle<'a, QUEUE, MTU>

§

impl<'a, const QUEUE: usize, const MTU: usize> !Send for LocalAppHandle<'a, QUEUE, MTU>

§

impl<'a, const QUEUE: usize, const MTU: usize> !Sync for LocalAppHandle<'a, QUEUE, MTU>

§

impl<'a, const QUEUE: usize, const MTU: usize> Unpin for LocalAppHandle<'a, QUEUE, MTU>

§

impl<'a, const QUEUE: usize, const MTU: usize> UnsafeUnpin for LocalAppHandle<'a, QUEUE, MTU>

§

impl<'a, const QUEUE: usize, const MTU: usize> !UnwindSafe for LocalAppHandle<'a, QUEUE, MTU>

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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.