pub struct OpenedUpstream { /* private fields */ }Expand description
One upstream connection, and the leg describing it.
Constructed by Upstream::open rather than by a caller, so the pairing
survives into the wiring instead of being re-established at the call site.
Implementations§
Source§impl OpenedUpstream
impl OpenedUpstream
Sourcepub fn new(leg: Leg, peer: Arc<dyn BridgePeer>) -> Self
pub fn new(leg: Leg, peer: Arc<dyn BridgePeer>) -> Self
Pairs a negotiated leg with the peer it was negotiated against.
Sourcepub fn peer(&self) -> &Arc<dyn BridgePeer> ⓘ
pub fn peer(&self) -> &Arc<dyn BridgePeer> ⓘ
The connection the leg was negotiated against.
Sourcepub fn into_parts(self) -> (Leg, Arc<dyn BridgePeer>)
pub fn into_parts(self) -> (Leg, Arc<dyn BridgePeer>)
Splits into the two halves Wiring::new takes.
Trait Implementations§
Source§impl Clone for OpenedUpstream
impl Clone for OpenedUpstream
Auto Trait Implementations§
impl !RefUnwindSafe for OpenedUpstream
impl !UnwindSafe for OpenedUpstream
impl Freeze for OpenedUpstream
impl Send for OpenedUpstream
impl Sync for OpenedUpstream
impl Unpin for OpenedUpstream
impl UnsafeUnpin for OpenedUpstream
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