pub struct Download { /* private fields */ }Expand description
A request for one motor’s data files, in one format. Build it with Download::new, which
checks the motor id.
Implementations§
Source§impl Download
impl Download
Sourcepub fn new(motor_id: &str, format: Format) -> Result<Self, ThrustCurveError>
pub fn new(motor_id: &str, format: Format) -> Result<Self, ThrustCurveError>
A motor’s data files in format, by its ThrustCurve id, in either case: it is kept in
lower case, as the API writes ids, so one motor has one URL and its answer matches.
§Errors
ThrustCurveError::Request for an id that isn’t 24 hexadecimal digits, the form the
API’s ids take.
Trait Implementations§
impl Eq for Download
impl StructuralPartialEq for Download
Auto Trait Implementations§
impl Freeze for Download
impl RefUnwindSafe for Download
impl Send for Download
impl Sync for Download
impl Unpin for Download
impl UnsafeUnpin for Download
impl UnwindSafe for Download
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.