pub struct TwoWayChannel<P, C1, C2>where
P: Port + 'static,
C1: ComponentDefinition + 'static + Provide<P> + ProvideRef<P>,
C2: ComponentDefinition + 'static + Require<P> + RequireRef<P>,{ /* private fields */ }Expand description
The channel resulting from a call to biconnect_components
Trait Implementations§
Source§impl<P, C1, C2> Channel for TwoWayChannel<P, C1, C2>where
P: Port + 'static,
C1: ComponentDefinition + 'static + Provide<P> + ProvideRef<P>,
C2: ComponentDefinition + 'static + Require<P> + RequireRef<P>,
impl<P, C1, C2> Channel for TwoWayChannel<P, C1, C2>where
P: Port + 'static,
C1: ComponentDefinition + 'static + Provide<P> + ProvideRef<P>,
C2: ComponentDefinition + 'static + Require<P> + RequireRef<P>,
Source§fn disconnect_by_ref(&self) -> Result<(), TryLockError>
fn disconnect_by_ref(&self) -> Result<(), TryLockError>
Disconnects this channel without consuming it Read more
Source§fn disconnect(self) -> Result<(), DisconnectError<Self>>where
Self: Sized,
fn disconnect(self) -> Result<(), DisconnectError<Self>>where
Self: Sized,
Disconnects this channel Read more
Auto Trait Implementations§
impl<P, C1, C2> Freeze for TwoWayChannel<P, C1, C2>
impl<P, C1, C2> !RefUnwindSafe for TwoWayChannel<P, C1, C2>
impl<P, C1, C2> Send for TwoWayChannel<P, C1, C2>
impl<P, C1, C2> Sync for TwoWayChannel<P, C1, C2>
impl<P, C1, C2> Unpin for TwoWayChannel<P, C1, C2>
impl<P, C1, C2> UnsafeUnpin for TwoWayChannel<P, C1, C2>
impl<P, C1, C2> !UnwindSafe for TwoWayChannel<P, C1, C2>
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