pub enum CompatibilityRule {
RequireBoth,
RequireClient,
RequireServer,
Optional,
Custom(fn(&ClientCapabilities, &ServerCapabilities) -> bool),
}
Expand description
Compatibility rule for a feature
Variants§
RequireBoth
Feature requires both client and server support
RequireClient
Feature requires only client support
RequireServer
Feature requires only server support
Optional
Feature is optional (either side can enable)
Custom(fn(&ClientCapabilities, &ServerCapabilities) -> bool)
Custom compatibility function
Trait Implementations§
Source§impl Clone for CompatibilityRule
impl Clone for CompatibilityRule
Source§fn clone(&self) -> CompatibilityRule
fn clone(&self) -> CompatibilityRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CompatibilityRule
impl RefUnwindSafe for CompatibilityRule
impl Send for CompatibilityRule
impl Sync for CompatibilityRule
impl Unpin for CompatibilityRule
impl UnwindSafe for CompatibilityRule
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