pub struct SensorMetadataBuilder { /* private fields */ }Expand description
Builder for SensorMetadata.
Implementations§
Source§impl SensorMetadataBuilder
impl SensorMetadataBuilder
pub fn available<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn minimum_frequency<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
pub fn maximum_frequency<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<SensorMetadata, SensorMetadataBuilderError>
pub fn build(&self) -> Result<SensorMetadata, SensorMetadataBuilderError>
Trait Implementations§
Source§impl Clone for SensorMetadataBuilder
impl Clone for SensorMetadataBuilder
Source§fn clone(&self) -> SensorMetadataBuilder
fn clone(&self) -> SensorMetadataBuilder
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 moreAuto Trait Implementations§
impl Freeze for SensorMetadataBuilder
impl RefUnwindSafe for SensorMetadataBuilder
impl Send for SensorMetadataBuilder
impl Sync for SensorMetadataBuilder
impl Unpin for SensorMetadataBuilder
impl UnsafeUnpin for SensorMetadataBuilder
impl UnwindSafe for SensorMetadataBuilder
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