Struct executors::bichannel::Endpoint [−][src]
One end of a bichannel
This end can send In
type to the other end
and receive Out
type from the other end.
Implementations
impl<In, Out> Endpoint<In, Out>
[src]
pub fn send(&self, t: Out) -> Result<(), SendError<Out>>
[src]
Send t
to the other end
This functions works just like mpsc send.
pub fn try_recv(&self) -> Result<In, TryRecvError>
[src]
Receive something from the channel without blocking
This functions works just like mpsc try_recv.
pub fn recv(&self) -> Result<In, RecvError>
[src]
Receive something from the channel, blocking until something is available
This functions works just like mpsc recv.
pub fn recv_timeout(&self, timeout: Duration) -> Result<In, RecvTimeoutError>
[src]
Receive something from the channel, blocking until something is available or the timeout expires
This functions works just like mpsc recv_timeout.
pub fn iter(&self) -> Iter<'_, In>
[src]
Iterate over incoming data
This functions works just like mpsc iter.
pub fn try_iter(&self) -> TryIter<'_, In>
[src]
Iterate over incoming data
This functions works just like mpsc try_iter.
Auto Trait Implementations
impl<In, Out> !RefUnwindSafe for Endpoint<In, Out>
impl<In, Out> Send for Endpoint<In, Out> where
In: Send,
Out: Send,
In: Send,
Out: Send,
impl<In, Out> !Sync for Endpoint<In, Out>
impl<In, Out> Unpin for Endpoint<In, Out>
impl<In, Out> !UnwindSafe for Endpoint<In, Out>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,