pub struct Versions { /* private fields */ }Expand description
This is the configuration that is used to determine the versioning of the messages.
When this is the default, messages emitted will have version 1 and only accept version 1.
If only one version is converted from from u16 then that is the only version emitted and supported.
If more options are given to Versions::new then the first will be the version being emitted, the other two the minimum and maximum version that will be accepted on read (inclusive).
use pipenet::Versions;
let v: Versions = Versions::default();
let v: Versions = 1.into();
let v: Versions = Versions::new(3, 1, 3);Implementations§
Trait Implementations§
impl Copy for Versions
impl StructuralPartialEq for Versions
Auto Trait Implementations§
impl Freeze for Versions
impl RefUnwindSafe for Versions
impl Send for Versions
impl Sync for Versions
impl Unpin for Versions
impl UnwindSafe for Versions
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