MultiplexerRx

Struct MultiplexerRx 

Source
pub struct MultiplexerRx<T> { /* private fields */ }

Implementations§

Source§

impl<T> MultiplexerRx<T>

Source

pub fn new(count: usize) -> Self

Source

pub fn selection_mut(&mut self) -> &mut MessageRx<MultiplexerSelection>

Gets the selection channel

Source

pub fn channel_mut(&mut self, index: usize) -> &mut MessageRx<T>

Get the i-th input channel

Source

pub fn new_channel_mut(&mut self) -> &mut MessageRx<T>

Add a new input channel and return it

Trait Implementations§

Source§

impl<T: Send + Sync> RxBundle for MultiplexerRx<T>

Source§

fn channel_count(&self) -> usize

Number of channels
Source§

fn name(&self, index: usize) -> &str

Name of the i-th endpoint
Source§

fn inbox_message_count(&self, index: usize) -> usize

Number of messages currently available on the i-th endpoint
Source§

fn sync_all(&mut self, results: &mut [SyncResult])

Synchronizes all endpoints
Source§

fn check_connection(&self) -> ConnectionCheck

Connection status of all endpoints in the budle
Source§

fn iter_names(&self) -> impl Iterator<Item = &str>

Iterate over all channel names

Auto Trait Implementations§

§

impl<T> Freeze for MultiplexerRx<T>

§

impl<T> RefUnwindSafe for MultiplexerRx<T>
where T: RefUnwindSafe,

§

impl<T> Send for MultiplexerRx<T>
where T: Send + Sync,

§

impl<T> Sync for MultiplexerRx<T>
where T: Sync + Send,

§

impl<T> Unpin for MultiplexerRx<T>
where T: Unpin,

§

impl<T> UnwindSafe for MultiplexerRx<T>
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>,

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.