pub enum DesiredVersion {
Use(Version),
Assume(Version),
Lookup,
}
Expand description
A desired version to use for communicating with a Send server.
Various options are available, to use an exact version, or to look it up at runtime.
Variants§
Use(Version)
Use just the given API version when communicating with a Send server.
Assume(Version)
Assume the given API version when communicating with a Send version, but attempt to look up the correct version if communication fails.
Lookup
Attempt to look up the server API version at runtime.
Implementations§
Trait Implementations§
Source§impl Clone for DesiredVersion
impl Clone for DesiredVersion
Source§fn clone(&self) -> DesiredVersion
fn clone(&self) -> DesiredVersion
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 moreSource§impl Debug for DesiredVersion
impl Debug for DesiredVersion
Source§impl PartialEq for DesiredVersion
impl PartialEq for DesiredVersion
impl Copy for DesiredVersion
impl Eq for DesiredVersion
impl StructuralPartialEq for DesiredVersion
Auto Trait Implementations§
impl Freeze for DesiredVersion
impl RefUnwindSafe for DesiredVersion
impl Send for DesiredVersion
impl Sync for DesiredVersion
impl Unpin for DesiredVersion
impl UnwindSafe for DesiredVersion
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.