pub struct Mount { /* private fields */ }
Expand description

GMT mount control model

Implementations§

source§

impl Mount

source

pub fn new() -> Self

Returns the mount controller

Trait Implementations§

source§

impl Clone for Mount

source§

fn clone(&self) -> Mount

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Codec for Mount

source§

fn decode<R>(reader: &mut R) -> Result<Self, LoadError>
where R: Read,

Decodes object from std::io::Read
source§

fn encode<W>(&self, writer: &mut W) -> Result<(), LoadError>
where W: Write,

Encodes object to std::io::Write
source§

impl Debug for Mount

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Mount

source§

fn default() -> Mount

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Mount

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Read<MountEncoders> for Mount

source§

fn read(&mut self, data: Data<MountEncoders>)

Read data from an input
source§

impl Read<MountSetPoint> for Mount

source§

fn read(&mut self, data: Data<MountSetPoint>)

Read data from an input
source§

impl Serialize for Mount

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Size<MountEncoders> for Mount

source§

fn len(&self) -> usize

source§

impl Size<MountSetPoint> for Mount

source§

fn len(&self) -> usize

source§

impl Size<MountTorques> for Mount

source§

fn len(&self) -> usize

source§

impl Update for Mount

source§

fn update(&mut self)

source§

impl Write<MountTorques> for Mount

Auto Trait Implementations§

§

impl Freeze for Mount

§

impl RefUnwindSafe for Mount

§

impl Send for Mount

§

impl Sync for Mount

§

impl Unpin for Mount

§

impl UnwindSafe for Mount

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Filing for T
where T: Codec + Serialize + for<'de> Deserialize<'de>,

source§

fn from_path<P>(path: P) -> Result<Self, LoadError>
where P: AsRef<Path> + Debug,

Decodes object from given path
source§

fn from_data_repo(file_name: impl AsRef<Path>) -> Result<Self, LoadError>

Decodes object from given file The file is read from the directory specified by the DATA_REPO environment variable.
source§

fn to_path<P>(&self, path: P) -> Result<(), LoadError>
where P: AsRef<Path> + Debug,

Encodes object from given path
source§

fn to_data_repo(&self, file_name: impl AsRef<Path>) -> Result<(), LoadError>

Encodes object from given file. The file is written to the directory specified by the DATA_REPO environment variable.
source§

fn from_path_or_else<P, F, B>(path: P, builder: F) -> Result<Self, LoadError>
where P: AsRef<Path> + Debug, F: FnOnce() -> B, Self: TryFrom<B>, Self::Error: Debug,

Decodes object from given path or creates a new object from the builder and encodes the object to the given path
source§

fn from_data_repo_or_else<P, F, B>( file_name: P, builder: F ) -> Result<Self, LoadError>
where P: AsRef<Path>, F: FnOnce() -> B, Self: TryFrom<B>, Self::Error: Debug,

Decodes object from given file or creates a new object from the builder and encodes the object to the given file. The file is read from the directory specified by the DATA_REPO environment variable.
source§

fn from_path_or_default<P, F, B>(path: P) -> Result<Self, LoadError>
where P: AsRef<Path> + Debug, B: Default, F: FnOnce() -> B, Self: TryFrom<B>, Self::Error: Debug,

Decodes object from given path or creates a new object from Default and encodes the object to the given path
source§

fn from_data_repo_or_default<P, F, B>(file_name: P) -> Result<Self, LoadError>
where P: AsRef<Path>, B: Default, F: FnOnce() -> B, Self: TryFrom<B>, Self::Error: Debug,

Decodes object from given file or creates a new object from Default and encodes the object to the given file. The file is read from the directory specified by the DATA_REPO environment variable.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,