pub struct ApiVersionRegistry { /* private fields */ }Implementations§
Source§impl ApiVersionRegistry
impl ApiVersionRegistry
pub fn new() -> Self
pub fn register(&self, version: u32, min_compatible: u32)
pub fn deprecate(&self, version: u32)
pub fn is_compatible(&self, client_version: u32) -> bool
pub fn latest(&self) -> Option<u32>
pub fn negotiate(&self, client_version: u32) -> Option<u32>
pub fn count(&self) -> usize
Trait Implementations§
Source§impl Default for ApiVersionRegistry
impl Default for ApiVersionRegistry
Source§fn default() -> ApiVersionRegistry
fn default() -> ApiVersionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ApiVersionRegistry
impl RefUnwindSafe for ApiVersionRegistry
impl Send for ApiVersionRegistry
impl Sync for ApiVersionRegistry
impl Unpin for ApiVersionRegistry
impl UnsafeUnpin for ApiVersionRegistry
impl UnwindSafe for ApiVersionRegistry
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