WireChannel

Struct WireChannel 

Source
pub struct WireChannel<Sender, Receiver> {
    pub sender: Sender,
    pub receiver: Receiver,
}

Fields§

§sender: Sender§receiver: Receiver

Implementations§

Source§

impl<S, R> WireChannel<S, R>

Source

pub fn into_inner(self) -> (S, R)

Convert this into tuple

Trait Implementations§

Source§

impl<S: Wiring + 'static, R: Unwiring + 'static> Unwiring for WireChannel<Sender<S>, Receiver<R>>

Source§

fn unwiring<W: Unwire>( wire: &mut W, ) -> impl Future<Output = Result<Self, Error>> + Send

Source§

const FIXED_SIZE: usize = 0usize

Source§

const MIXED: bool = true

Source§

fn sync_unwiring<W>(wire: &mut W) -> Result<Self, Error>
where W: Read + Unwire,

Source§

fn unwiring_vec<W: Unwire>( wire: &mut W, ) -> impl Future<Output = Result<Vec<Self>, Error>> + Send

Source§

fn unwiring_array<W: Unwire, const N: usize>( wire: &mut W, ) -> impl Future<Output = Result<[Self; N], Error>> + Send

Source§

fn bytes_length<W>(wire: &mut W, count: u64) -> Result<u64>
where W: Read + Unwire,

Return the length, including the prelength
Source§

fn sync_unwiring_array<W, const N: usize>( wire: &mut W, ) -> Result<[Self; N], Error>
where W: Read + Unwire,

Source§

fn sync_unwiring_vec<W>(wire: &mut W) -> Result<Vec<Self>, Error>
where W: Read + Unwire,

Source§

impl<S: Wiring + 'static, R: Unwiring + 'static> Unwiring for WireChannel<UnboundedSender<S>, UnboundedReceiver<R>>

Source§

fn unwiring<W: Unwire>( wire: &mut W, ) -> impl Future<Output = Result<Self, Error>> + Send

Source§

const FIXED_SIZE: usize = 0usize

Source§

const MIXED: bool = true

Source§

fn sync_unwiring<W>(wire: &mut W) -> Result<Self, Error>
where W: Read + Unwire,

Source§

fn unwiring_vec<W: Unwire>( wire: &mut W, ) -> impl Future<Output = Result<Vec<Self>, Error>> + Send

Source§

fn unwiring_array<W: Unwire, const N: usize>( wire: &mut W, ) -> impl Future<Output = Result<[Self; N], Error>> + Send

Source§

fn bytes_length<W>(wire: &mut W, count: u64) -> Result<u64>
where W: Read + Unwire,

Return the length, including the prelength
Source§

fn sync_unwiring_array<W, const N: usize>( wire: &mut W, ) -> Result<[Self; N], Error>
where W: Read + Unwire,

Source§

fn sync_unwiring_vec<W>(wire: &mut W) -> Result<Vec<Self>, Error>
where W: Read + Unwire,

Auto Trait Implementations§

§

impl<Sender, Receiver> Freeze for WireChannel<Sender, Receiver>
where Sender: Freeze, Receiver: Freeze,

§

impl<Sender, Receiver> RefUnwindSafe for WireChannel<Sender, Receiver>
where Sender: RefUnwindSafe, Receiver: RefUnwindSafe,

§

impl<Sender, Receiver> Send for WireChannel<Sender, Receiver>
where Sender: Send, Receiver: Send,

§

impl<Sender, Receiver> Sync for WireChannel<Sender, Receiver>
where Sender: Sync, Receiver: Sync,

§

impl<Sender, Receiver> Unpin for WireChannel<Sender, Receiver>
where Sender: Unpin, Receiver: Unpin,

§

impl<Sender, Receiver> UnwindSafe for WireChannel<Sender, Receiver>
where Sender: UnwindSafe, Receiver: 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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,