pub struct Developer { /* private fields */ }Expand description
An application that adds developer fields, identified by its 16-byte application ID: a UUID it keeps across every file it writes.
use fit_encoder::{Developer, Manufacturer};
let app = Developer::new(*b"\x6a\x1e\x00\x9d\x3b\x55\x4c\x10\x8f\x0e\x2d\x41\x7a\x93\x01\x5c")
.manufacturer(Manufacturer::DEVELOPMENT)
.application_version(110); // 1.10Implementations§
Source§impl Developer
impl Developer
Sourcepub const fn new(application_id: [u8; 16]) -> Self
pub const fn new(application_id: [u8; 16]) -> Self
An application by its ID; all 0xFF is FIT’s “none”, which declaring refuses.
Sourcepub const fn manufacturer(self, manufacturer: Manufacturer) -> Self
pub const fn manufacturer(self, manufacturer: Manufacturer) -> Self
The application’s manufacturer.
Sourcepub const fn application_version(self, version: u32) -> Self
pub const fn application_version(self, version: u32) -> Self
The application’s version, in hundredths by convention: 110 is 1.10.
Trait Implementations§
impl Copy for Developer
impl Eq for Developer
impl StructuralPartialEq for Developer
Auto Trait Implementations§
impl Forget for Developer
impl Freeze for Developer
impl Move for Developer
impl RefUnwindSafe for Developer
impl Send for Developer
impl Sync for Developer
impl Unpin for Developer
impl UnsafeUnpin for Developer
impl UnwindSafe for Developer
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