Struct edgedb_protocol::features::ProtocolVersion
source · pub struct ProtocolVersion { /* private fields */ }
Implementations§
source§impl ProtocolVersion
impl ProtocolVersion
pub fn current() -> ProtocolVersion
pub fn new(major_ver: u16, minor_ver: u16) -> ProtocolVersion
pub fn version_tuple(&self) -> (u16, u16)
pub fn is_1(&self) -> bool
pub fn supports_inline_typenames(&self) -> bool
pub fn has_implicit_tid(&self) -> bool
pub fn has_implicit_id(&self) -> bool
pub fn is_at_least(&self, major_ver: u16, minor_ver: u16) -> bool
pub fn is_at_most(&self, major_ver: u16, minor_ver: u16) -> bool
Trait Implementations§
source§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
source§fn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
Returns a copy 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 moresource§impl Debug for ProtocolVersion
impl Debug for ProtocolVersion
source§impl PartialEq for ProtocolVersion
impl PartialEq for ProtocolVersion
source§fn eq(&self, other: &ProtocolVersion) -> bool
fn eq(&self, other: &ProtocolVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProtocolVersion
impl StructuralPartialEq for ProtocolVersion
Auto Trait Implementations§
impl Freeze for ProtocolVersion
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnwindSafe for ProtocolVersion
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