[][src]Enum ffsend_api::api::DesiredVersion

pub enum DesiredVersion {
    Use(Version),
    Assume(Version),
    Lookup,
}

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

impl DesiredVersion[src]

pub fn version(self) -> Option<Version>[src]

Get the selected API version, if set.

This returns None if it is the Lookup variant.

Trait Implementations

impl Clone for DesiredVersion[src]

impl Copy for DesiredVersion[src]

impl Debug for DesiredVersion[src]

impl Eq for DesiredVersion[src]

impl PartialEq<DesiredVersion> for DesiredVersion[src]

impl StructuralEq for DesiredVersion[src]

impl StructuralPartialEq for DesiredVersion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any