pub struct DecoderBuilder<'a> { /* private fields */ }Expand description
Builder for TypedDecoder. Created by Decoder::builder.
Implementations§
Source§impl<'a> DecoderBuilder<'a>
impl<'a> DecoderBuilder<'a>
pub fn new(bytes: &'a [u8]) -> Self
pub fn apply_scale_and_offset(self, v: bool) -> Self
pub fn expand_components(self, v: bool) -> Self
pub fn expand_subfields(self, v: bool) -> Self
pub fn convert_types_to_strings(self, v: bool) -> Self
pub fn convert_datetime(self, v: bool) -> Self
pub fn decode_memo_glob(self, v: bool) -> Self
pub fn merge_heart_rates(self, v: bool) -> Self
pub fn skip_header(self, v: bool) -> Self
pub fn data_only(self, v: bool) -> Self
Sourcepub fn on_mesg<F: Fn(&Message) + 'a>(self, f: F) -> Self
pub fn on_mesg<F: Fn(&Message) + 'a>(self, f: F) -> Self
Register a callback invoked for each decoded data message.
pub fn build(self) -> TypedDecoder<'a> ⓘ
Auto Trait Implementations§
impl<'a> Freeze for DecoderBuilder<'a>
impl<'a> !RefUnwindSafe for DecoderBuilder<'a>
impl<'a> !Send for DecoderBuilder<'a>
impl<'a> !Sync for DecoderBuilder<'a>
impl<'a> Unpin for DecoderBuilder<'a>
impl<'a> UnsafeUnpin for DecoderBuilder<'a>
impl<'a> !UnwindSafe for DecoderBuilder<'a>
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