pub struct WireChannel<Sender, Receiver> {
pub sender: Sender,
pub receiver: Receiver,
}Fields§
§sender: Sender§receiver: ReceiverImplementations§
Source§impl<S, R> WireChannel<S, R>
impl<S, R> WireChannel<S, R>
Sourcepub fn into_inner(self) -> (S, R)
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>>
impl<S: Wiring + 'static, R: Unwiring + 'static> Unwiring for WireChannel<Sender<S>, Receiver<R>>
fn unwiring<W: Unwire>( wire: &mut W, ) -> impl Future<Output = Result<Self, Error>> + Send
const FIXED_SIZE: usize = 0usize
const MIXED: bool = true
fn sync_unwiring<W>(wire: &mut W) -> Result<Self, Error>
fn unwiring_vec<W: Unwire>( wire: &mut W, ) -> impl Future<Output = Result<Vec<Self>, Error>> + Send
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>
fn bytes_length<W>(wire: &mut W, count: u64) -> Result<u64>
Return the length, including the prelength
fn sync_unwiring_array<W, const N: usize>( wire: &mut W, ) -> Result<[Self; N], Error>
fn sync_unwiring_vec<W>(wire: &mut W) -> Result<Vec<Self>, Error>
Source§impl<S: Wiring + 'static, R: Unwiring + 'static> Unwiring for WireChannel<UnboundedSender<S>, UnboundedReceiver<R>>
impl<S: Wiring + 'static, R: Unwiring + 'static> Unwiring for WireChannel<UnboundedSender<S>, UnboundedReceiver<R>>
fn unwiring<W: Unwire>( wire: &mut W, ) -> impl Future<Output = Result<Self, Error>> + Send
const FIXED_SIZE: usize = 0usize
const MIXED: bool = true
fn sync_unwiring<W>(wire: &mut W) -> Result<Self, Error>
fn unwiring_vec<W: Unwire>( wire: &mut W, ) -> impl Future<Output = Result<Vec<Self>, Error>> + Send
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>
fn bytes_length<W>(wire: &mut W, count: u64) -> Result<u64>
Return the length, including the prelength
fn sync_unwiring_array<W, const N: usize>( wire: &mut W, ) -> Result<[Self; N], Error>
fn sync_unwiring_vec<W>(wire: &mut W) -> Result<Vec<Self>, Error>
Auto Trait Implementations§
impl<Sender, Receiver> Freeze for WireChannel<Sender, Receiver>
impl<Sender, Receiver> RefUnwindSafe for WireChannel<Sender, Receiver>where
Sender: RefUnwindSafe,
Receiver: RefUnwindSafe,
impl<Sender, Receiver> Send for WireChannel<Sender, Receiver>
impl<Sender, Receiver> Sync for WireChannel<Sender, Receiver>
impl<Sender, Receiver> Unpin for WireChannel<Sender, Receiver>
impl<Sender, Receiver> UnwindSafe for WireChannel<Sender, Receiver>where
Sender: UnwindSafe,
Receiver: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more