pub struct StreamOptions<F: StreamFormat> { /* private fields */ }Expand description
Configuration options for GPS data streams
This struct allows configuring various aspects of the data stream, such as enabling specific data types or formatting options.
Use the format-specific constructors (StreamOptions::json(), etc.)
to create instances with appropriate defaults.
Implementations§
Source§impl<F: StreamFormat> StreamOptions<F>
impl<F: StreamFormat> StreamOptions<F>
Source§impl StreamOptions<Json>
impl StreamOptions<Json>
Sourcepub fn json() -> StreamOptions<Json>
pub fn json() -> StreamOptions<Json>
Creates stream options for JSON format output
Returns a configuration for receiving structured GPS data as JSON messages.
Source§impl StreamOptions<Nmea>
impl StreamOptions<Nmea>
Sourcepub fn nmea() -> StreamOptions<Nmea>
pub fn nmea() -> StreamOptions<Nmea>
Creates stream options for NMEA format output
Returns a configuration for receiving raw NMEA 0183 sentences from the GPS receiver.
Source§impl StreamOptions<Raw>
impl StreamOptions<Raw>
Sourcepub fn raw() -> StreamOptions<Raw>
pub fn raw() -> StreamOptions<Raw>
Creates stream options for raw format output
Returns a configuration for receiving raw binary data from the GPS receiver.
Trait Implementations§
Source§impl<F: Clone + StreamFormat> Clone for StreamOptions<F>
impl<F: Clone + StreamFormat> Clone for StreamOptions<F>
Source§fn clone(&self) -> StreamOptions<F>
fn clone(&self) -> StreamOptions<F>
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<F> Freeze for StreamOptions<F>
impl<F> RefUnwindSafe for StreamOptions<F>where
F: RefUnwindSafe,
impl<F> Send for StreamOptions<F>where
F: Send,
impl<F> Sync for StreamOptions<F>where
F: Sync,
impl<F> Unpin for StreamOptions<F>where
F: Unpin,
impl<F> UnwindSafe for StreamOptions<F>where
F: UnwindSafe,
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