pub struct FeatureSet {
pub native: bool,
pub wasm: bool,
pub client: bool,
pub server: bool,
pub websocket_transport: bool,
pub quic_transport: bool,
pub hybrid_transport: bool,
pub gzip_compression: bool,
pub aes_256_gcm_encryption: bool,
pub tcp_transport: bool,
}Expand description
Capabilities enabled for the current build.
Fields§
§native: boolNative target build.
wasm: boolWASM target build.
client: boolClient-side transport stack is enabled.
server: boolServer-side transport stack is enabled.
websocket_transport: boolWebSocket transport is enabled for this target.
quic_transport: boolQUIC transport is enabled for this target.
hybrid_transport: boolHybrid transport racing is available.
gzip_compression: boolBuilt-in Gzip compression is enabled.
aes_256_gcm_encryption: boolBuilt-in AES-256-GCM encryption is enabled.
tcp_transport: boolRaw TCP transport is enabled (native only).
Implementations§
Source§impl FeatureSet
impl FeatureSet
Trait Implementations§
Source§impl Clone for FeatureSet
impl Clone for FeatureSet
Source§fn clone(&self) -> FeatureSet
fn clone(&self) -> FeatureSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FeatureSet
Source§impl Debug for FeatureSet
impl Debug for FeatureSet
impl Eq for FeatureSet
Source§impl PartialEq for FeatureSet
impl PartialEq for FeatureSet
Source§fn eq(&self, other: &FeatureSet) -> bool
fn eq(&self, other: &FeatureSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FeatureSet
Auto Trait Implementations§
impl Freeze for FeatureSet
impl RefUnwindSafe for FeatureSet
impl Send for FeatureSet
impl Sync for FeatureSet
impl Unpin for FeatureSet
impl UnsafeUnpin for FeatureSet
impl UnwindSafe for FeatureSet
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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