pub struct Leg {
pub version: ProtocolVersion,
pub profile: FeatureProfile,
}Expand description
The two sides of a bridge, each having negotiated with it independently.
Fields§
§version: ProtocolVersionThe revision this side settled on.
profile: FeatureProfileWhat that side agreed to, after resolving its own capabilities.
Implementations§
Source§impl Leg
impl Leg
Sourcepub const fn new(version: ProtocolVersion, profile: FeatureProfile) -> Self
pub const fn new(version: ProtocolVersion, profile: FeatureProfile) -> Self
A leg from a version and an already-resolved profile.
Trait Implementations§
impl Copy for Leg
impl Eq for Leg
impl StructuralPartialEq for Leg
Auto Trait Implementations§
impl Freeze for Leg
impl RefUnwindSafe for Leg
impl Send for Leg
impl Sync for Leg
impl Unpin for Leg
impl UnsafeUnpin for Leg
impl UnwindSafe for Leg
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