Struct cut::SharedChannel
source · [−]pub struct SharedChannel<S> where
S: SharedProtocol, {
pub(crate) endpoint: Sender<(SenderOnce<()>, SenderOnce<S>)>,
}
Fields
endpoint: Sender<(SenderOnce<()>, SenderOnce<S>)>
Trait Implementations
sourceimpl<S> Clone for SharedChannel<S> where
S: SharedProtocol,
impl<S> Clone for SharedChannel<S> where
S: SharedProtocol,
sourcefn clone(&self) -> SharedChannel<S>
fn clone(&self) -> SharedChannel<S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, A> Deserialize<'a> for SharedChannel<A> where
A: SharedProtocol + ForwardChannel,
impl<'a, A> Deserialize<'a> for SharedChannel<A> where
A: SharedProtocol + ForwardChannel,
sourcefn deserialize<D>(
deserializer: D
) -> Result<SharedChannel<A>, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
fn deserialize<D>(
deserializer: D
) -> Result<SharedChannel<A>, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<A> Serialize for SharedChannel<A> where
A: SharedProtocol + ForwardChannel,
impl<A> Serialize for SharedChannel<A> where
A: SharedProtocol + ForwardChannel,
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl<S> !RefUnwindSafe for SharedChannel<S>
impl<S> Send for SharedChannel<S>
impl<S> Sync for SharedChannel<S>
impl<S> Unpin for SharedChannel<S>
impl<S> !UnwindSafe for SharedChannel<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, F, A> HasRecApp<F, A> for T where
F: 'static + RecApp<A, Applied = T>,
A: 'static,
T: 'static + Send,
impl<T, F, A> HasRecApp<F, A> for T where
F: 'static + RecApp<A, Applied = T>,
A: 'static,
T: 'static + Send,
sourceimpl<'a, S, Row, F> HasSumApp<'a, Row, F> for S where
F: TyCon,
S: Send,
Row: SumApp<'a, F, Applied = S>,
impl<'a, S, Row, F> HasSumApp<'a, Row, F> for S where
F: TyCon,
S: Send,
Row: SumApp<'a, F, Applied = S>,
sourceimpl<'a, T, F, A> HasTypeApp<'a, F, A> for T where
T: Send,
F: TypeApp<'a, A, Applied = T>,
impl<'a, T, F, A> HasTypeApp<'a, F, A> for T where
T: Send,
F: TypeApp<'a, A, Applied = T>,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more