pub struct FeatureSpec {
pub feature: Feature,
pub side: Side,
pub client_cap: Option<Capability>,
pub server_cap: Option<Capability>,
pub transport: Option<TransportKind>,
pub first: ProtocolVersion,
pub last: Option<ProtocolVersion>,
}Expand description
One row of the feature matrix.
Fields§
§feature: FeatureThe feature this row describes.
side: SideWhich side has to support it.
client_cap: Option<Capability>Client capability required, if any.
server_cap: Option<Capability>Server capability required, if any.
transport: Option<TransportKind>Transport required, if any.
first: ProtocolVersionThe oldest revision that defines it.
last: Option<ProtocolVersion>The revision that removed it, if it was removed.
Implementations§
Source§impl FeatureSpec
impl FeatureSpec
Sourcepub fn defined_in(&self, version: ProtocolVersion) -> bool
pub fn defined_in(&self, version: ProtocolVersion) -> bool
Whether version defines this feature, ignoring capabilities and
transport.
An unknown revision defines nothing, matching
transport_allowed: there are no
wire types to lower to.
Trait Implementations§
Source§impl Clone for FeatureSpec
impl Clone for FeatureSpec
impl Copy for FeatureSpec
Source§impl Debug for FeatureSpec
impl Debug for FeatureSpec
impl Eq for FeatureSpec
Source§impl PartialEq for FeatureSpec
impl PartialEq for FeatureSpec
impl StructuralPartialEq for FeatureSpec
Auto Trait Implementations§
impl Freeze for FeatureSpec
impl RefUnwindSafe for FeatureSpec
impl Send for FeatureSpec
impl Sync for FeatureSpec
impl Unpin for FeatureSpec
impl UnsafeUnpin for FeatureSpec
impl UnwindSafe for FeatureSpec
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