pub struct Rx<T, const N: usize = 16> { /* private fields */ }Expand description
Receiver handle: “I receive”. The holder of an Rx<T> receives items of type T.
In method args, the handler holds it (handler receives ← caller).
Wire encoding is always unit (()), with channel IDs carried exclusively
in Message::Request.channels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, const N: usize> Freeze for Rx<T, N>
impl<T, const N: usize> RefUnwindSafe for Rx<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Rx<T, N>where
T: Send,
impl<T, const N: usize> Sync for Rx<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for Rx<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for Rx<T, N>
impl<T, const N: usize> UnwindSafe for Rx<T, N>where
T: 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