Struct bollard::ClientVersion
source · pub struct ClientVersion {
pub major_version: usize,
pub minor_version: usize,
}
Expand description
Advisory version stub to use for communicating with the Server. The docker server will error if a higher client version is used than is compatible with the server. Beware also, that the docker server will return stubs for a higher version than the version set when communicating.
See also negotiate_version, and the client_version
argument when instantiating the
Docker client instance.
Fields§
§major_version: usize
The major version number.
minor_version: usize
The minor version number.
Trait Implementations§
source§impl Clone for ClientVersion
impl Clone for ClientVersion
source§fn clone(&self) -> ClientVersion
fn clone(&self) -> ClientVersion
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 ClientVersion
impl Debug for ClientVersion
source§impl Display for ClientVersion
impl Display for ClientVersion
source§impl From<&(AtomicUsize, AtomicUsize)> for ClientVersion
impl From<&(AtomicUsize, AtomicUsize)> for ClientVersion
source§fn from(tpl: &(AtomicUsize, AtomicUsize)) -> ClientVersion
fn from(tpl: &(AtomicUsize, AtomicUsize)) -> ClientVersion
Converts to this type from the input type.
source§impl PartialEq for ClientVersion
impl PartialEq for ClientVersion
source§impl PartialOrd for ClientVersion
impl PartialOrd for ClientVersion
impl Copy for ClientVersion
impl StructuralPartialEq for ClientVersion
Auto Trait Implementations§
impl Freeze for ClientVersion
impl RefUnwindSafe for ClientVersion
impl Send for ClientVersion
impl Sync for ClientVersion
impl Unpin for ClientVersion
impl UnwindSafe for ClientVersion
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)