pub struct Ser { /* private fields */ }Expand description
SER format description version 3
Authors Heiko Wilkens (version 2) Grischa Hahn (red = extensions of version 3)
2014 Feb 06
Source: https://grischa-hahn.hier-im-netz.de/astro/ser/SER%20Doc%20V3b.pdf
Implementations§
Source§impl Ser
impl Ser
Sourcepub fn lu_id(&self) -> &i32
pub fn lu_id(&self) -> &i32
2_LuID
Format: Integer_32 (little-endian)
Length: 4 Byte
Content: Lumenera camera series ID (currently unused; default = 0)
Sourcepub fn observer(&self) -> &FixedString<40>
pub fn observer(&self) -> &FixedString<40>
9_Observer
Format: String
Length: 40 Byte (40 ASCII characters {32…126 dec.}, fill unused characters with 0 dec.)
Content: Name of observer
Sourcepub fn instrument(&self) -> &FixedString<40>
pub fn instrument(&self) -> &FixedString<40>
10_Instrument
Format: String
Length: 40 Byte (40 ASCII characters {32…126 dec.}, fill unused characters with 0 dec.)
Content: Name of used camera
Sourcepub fn telescope(&self) -> &FixedString<40>
pub fn telescope(&self) -> &FixedString<40>
11_Telescope
Format: String
Length: 40 Byte (40 ASCII characters {32…126 dec.}, fill unused characters with 0 dec.)
Content: Name of used telescope
Sourcepub fn datetime(&self) -> &Timestamp
pub fn datetime(&self) -> &Timestamp
12_DateTime
Format: Date / Integer_64 (little-endian)
Length: 8 Byte
Content: Start time of image stream (local time)
If 12_DateTime <= 0 then 12_DateTime is invalid and the SER file does not contain a Time stamp trailer.
Sourcepub fn datetime_utc(&self) -> &Timestamp
pub fn datetime_utc(&self) -> &Timestamp
13_DateTime_UTC
Format: Date / Integer_64 (little-endian)
Length: 8 Byte
Content: Start time of image stream in UTC
Source§impl Ser
impl Ser
Sourcepub fn set_lu_id(&mut self, val: i32) -> &mut Self
pub fn set_lu_id(&mut self, val: i32) -> &mut Self
2_LuID
Format: Integer_32 (little-endian)
Length: 4 Byte
Content: Lumenera camera series ID (currently unused; default = 0)
Sourcepub fn set_observer(&mut self, val: FixedString<40>) -> &mut Self
pub fn set_observer(&mut self, val: FixedString<40>) -> &mut Self
9_Observer
Format: String
Length: 40 Byte (40 ASCII characters {32…126 dec.}, fill unused characters with 0 dec.)
Content: Name of observer
Sourcepub fn set_instrument(&mut self, val: FixedString<40>) -> &mut Self
pub fn set_instrument(&mut self, val: FixedString<40>) -> &mut Self
10_Instrument
Format: String
Length: 40 Byte (40 ASCII characters {32…126 dec.}, fill unused characters with 0 dec.)
Content: Name of used camera
Sourcepub fn set_telescope(&mut self, val: FixedString<40>) -> &mut Self
pub fn set_telescope(&mut self, val: FixedString<40>) -> &mut Self
11_Telescope
Format: String
Length: 40 Byte (40 ASCII characters {32…126 dec.}, fill unused characters with 0 dec.)
Content: Name of used telescope
Source§impl Ser
impl Ser
pub fn with_format(format: FrameFormat) -> Self
Sourcepub fn frame_format(&self) -> FrameFormat
pub fn frame_format(&self) -> FrameFormat
Creates a new copy of this SER’s frame format
Sourcepub fn has_frame_timestamps(&self) -> bool
pub fn has_frame_timestamps(&self) -> bool
SER files include timestamps for each frame only if the datetime field
is valid.
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
The number of frames
Sourcepub fn frames_mut<'a>(&'a mut self) -> FramesMut<'a>
pub fn frames_mut<'a>(&'a mut self) -> FramesMut<'a>
Returns a FramesMut object for mutating frames
Trait Implementations§
Source§impl BinRead for Ser
impl BinRead for Ser
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for Ser
impl BinWrite for Ser
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer using default arguments. Read moreSource§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming native-endian byte order. Read moreSource§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Self to the writer using the given arguments. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl From<FrameFormat> for Ser
impl From<FrameFormat> for Ser
Source§fn from(value: FrameFormat) -> Self
fn from(value: FrameFormat) -> Self
Source§impl ReadEndian for Ser
impl ReadEndian for Ser
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
Source§impl WriteEndian for Ser
impl WriteEndian for Ser
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
Auto Trait Implementations§
impl Freeze for Ser
impl RefUnwindSafe for Ser
impl Send for Ser
impl Sync for Ser
impl Unpin for Ser
impl UnsafeUnpin for Ser
impl UnwindSafe for Ser
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more