[−][src]Struct dialectic::Available
An available Transmit
or Receive
end of a connection.
When using split
, the resultant two channels can only send or only
receive, respectively. This is reflected at the type level by the presence of Available
on
the type of the connection which is present for each part of the split, and Unavailable
on
the type of the connection which is not.
Whenever C
implements Transmit
or Receive
, so does Available<C>
.
Implementations
impl<C> Available<C>
[src]
pub fn into_inner(self) -> C
[src]
Retrieve the inner C
connection.
Trait Implementations
impl<C> AsMut<C> for Available<C>
[src]
impl<C> AsRef<C> for Available<C>
[src]
impl<C: Clone> Clone for Available<C>
[src]
impl<C: Copy> Copy for Available<C>
[src]
impl<C: Debug> Debug for Available<C>
[src]
impl<C: Default> Default for Available<C>
[src]
impl<C: Eq> Eq for Available<C>
[src]
impl<C: Hash> Hash for Available<C>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<C: PartialEq> PartialEq<Available<C>> for Available<C>
[src]
pub fn eq(&self, other: &Available<C>) -> bool
[src]
pub fn ne(&self, other: &Available<C>) -> bool
[src]
impl<C: PartialOrd> PartialOrd<Available<C>> for Available<C>
[src]
pub fn partial_cmp(&self, other: &Available<C>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Available<C>) -> bool
[src]
pub fn le(&self, other: &Available<C>) -> bool
[src]
pub fn gt(&self, other: &Available<C>) -> bool
[src]
pub fn ge(&self, other: &Available<C>) -> bool
[src]
impl<T, C> Receive<T> for Available<C> where
C: Receive<T>,
[src]
C: Receive<T>,
type Error = C::Error
The type of possible errors when receiving.
pub fn recv<'async_lifetime>(
&'async_lifetime mut self
) -> Pin<Box<dyn Future<Output = Result<T, Self::Error>> + Send + 'async_lifetime>>
[src]
&'async_lifetime mut self
) -> Pin<Box<dyn Future<Output = Result<T, Self::Error>> + Send + 'async_lifetime>>
impl<C> StructuralEq for Available<C>
[src]
impl<C> StructuralPartialEq for Available<C>
[src]
impl<T, Convention: CallingConvention, C> Transmit<T, Convention> for Available<C> where
C: Transmit<T, Convention>,
[src]
C: Transmit<T, Convention>,
type Error = C::Error
The type of possible errors when sending.
pub fn send<'a, 'async_lifetime>(
&'async_lifetime mut self,
message: <T as CallBy<'a, Convention>>::Type
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>> where
T: CallBy<'a, Convention>,
<T as CallBy<'a, Convention>>::Type: Send,
'a: 'async_lifetime,
[src]
&'async_lifetime mut self,
message: <T as CallBy<'a, Convention>>::Type
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>> where
T: CallBy<'a, Convention>,
<T as CallBy<'a, Convention>>::Type: Send,
'a: 'async_lifetime,
Auto Trait Implementations
impl<C> RefUnwindSafe for Available<C> where
C: RefUnwindSafe,
[src]
C: RefUnwindSafe,
impl<C> Send for Available<C> where
C: Send,
[src]
C: Send,
impl<C> Sync for Available<C> where
C: Sync,
[src]
C: Sync,
impl<C> Unpin for Available<C> where
C: Unpin,
[src]
C: Unpin,
impl<C> UnwindSafe for Available<C> where
C: UnwindSafe,
[src]
C: UnwindSafe,
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<'a, T> CallBy<'a, Mut> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> CallBy<'a, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> CallBy<'a, Val> for T
[src]
type Type = T
The type of Self
when called by Convention
.
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,