Struct libp2p::core::transport::choice::OrTransport [−][src]
Struct returned by or_transport()
.
Implementations
impl<A, B> OrTransport<A, B>
[src][−]
pub fn new(a: A, b: B) -> OrTransport<A, B>
[src]
Trait Implementations
impl<A, B> Clone for OrTransport<A, B> where
A: Clone,
B: Clone,
[src][+]
A: Clone,
B: Clone,
impl<A, B> Copy for OrTransport<A, B> where
A: Copy,
B: Copy,
[src]
A: Copy,
B: Copy,
impl<A, B> Debug for OrTransport<A, B> where
A: Debug,
B: Debug,
[src][+]
A: Debug,
B: Debug,
impl<A, B> Transport for OrTransport<A, B> where
A: Transport,
B: Transport,
[src][+]
A: Transport,
B: Transport,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for OrTransport<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for OrTransport<A, B> where
A: Send,
B: Send,
A: Send,
B: Send,
impl<A, B> Sync for OrTransport<A, B> where
A: Sync,
B: Sync,
A: Sync,
B: Sync,
impl<A, B> Unpin for OrTransport<A, B> where
A: Unpin,
B: Unpin,
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for OrTransport<A, B> where
A: UnwindSafe,
B: UnwindSafe,
A: UnwindSafe,
B: 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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,