Skip to main content

SrsppReceiver

Struct SrsppReceiver 

Source
pub struct SrsppReceiver<E, R: ReceiverBackend = ReceiverMachine<8, 4096, 8192>, const MAX_STREAMS: usize = 1> { /* private fields */ }
Expand description

Channel that owns the receiver state. Split into handle + driver.

Implementations§

Source§

impl<E: Clone, R: ReceiverBackend, const MAX_STREAMS: usize> SrsppReceiver<E, R, MAX_STREAMS>

Source

pub fn split( &self, ) -> (SrsppRxHandle<'_, E, R, MAX_STREAMS>, SrsppReceiverDriver<'_, E, R, MAX_STREAMS>)

Splits into a handle for receiving and a driver for I/O.

Source

pub fn builder() -> SrsppReceiverBuilder<E, R, MAX_STREAMS>

Creates a new multi-stream receiver.

Auto Trait Implementations§

§

impl<E, R = PackedReceiver<8, 4096, 8192>, const MAX_STREAMS: usize = 1> !Freeze for SrsppReceiver<E, R, MAX_STREAMS>

§

impl<E, R = PackedReceiver<8, 4096, 8192>, const MAX_STREAMS: usize = 1> !RefUnwindSafe for SrsppReceiver<E, R, MAX_STREAMS>

§

impl<E, R, const MAX_STREAMS: usize> Send for SrsppReceiver<E, R, MAX_STREAMS>
where E: Send, R: Send,

§

impl<E, R = PackedReceiver<8, 4096, 8192>, const MAX_STREAMS: usize = 1> !Sync for SrsppReceiver<E, R, MAX_STREAMS>

§

impl<E, R, const MAX_STREAMS: usize> Unpin for SrsppReceiver<E, R, MAX_STREAMS>
where E: Unpin, R: Unpin,

§

impl<E, R, const MAX_STREAMS: usize> UnsafeUnpin for SrsppReceiver<E, R, MAX_STREAMS>
where E: UnsafeUnpin, R: UnsafeUnpin,

§

impl<E, R, const MAX_STREAMS: usize> UnwindSafe for SrsppReceiver<E, R, MAX_STREAMS>
where E: UnwindSafe, R: 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> 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.