NetworkImpl

Struct NetworkImpl 

Source
pub struct NetworkImpl<'a> { /* private fields */ }

Trait Implementations§

Source§

impl<'a> Network for NetworkImpl<'a>

Source§

type Addr = SocketAddr

The type representing the network address. Must be unique. Read more
Source§

fn local_addr(&self) -> SocketAddr

Network address of the current device as visible to the other peers. Read more
Source§

fn start(&mut self) -> Result<(), NetworkError>

Source§

fn stop(&mut self) -> Result<(), NetworkError>

Source§

fn advertise(&mut self) -> Result<(), NetworkError>

Source§

fn recv(&mut self) -> Result<Option<(Self::Addr, Box<[u8]>)>, NetworkError>

Get a pending message, if any. Non-blocking.
Source§

fn send(&mut self, addr: Self::Addr, data: &[u8]) -> Result<(), NetworkError>

Send a raw message to the given device. Non-blocking.
Source§

fn send_status(&mut self, _: Self::Addr) -> Result<SendStatus, NetworkError>

Send a raw message to the given device. Non-blocking.

Auto Trait Implementations§

§

impl<'a> !Freeze for NetworkImpl<'a>

§

impl<'a> !RefUnwindSafe for NetworkImpl<'a>

§

impl<'a> Send for NetworkImpl<'a>

§

impl<'a> !Sync for NetworkImpl<'a>

§

impl<'a> Unpin for NetworkImpl<'a>

§

impl<'a> UnwindSafe for NetworkImpl<'a>

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<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

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> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,