[][src]Struct edf_reader::model::EDFHeader

pub struct EDFHeader {
    pub file_version: String,
    pub local_patient_identification: String,
    pub local_recording_identification: String,
    pub start_date: String,
    pub start_time: String,
    pub record_start_time_in_ms: i64,
    pub byte_size_header: u64,
    pub number_of_blocks: u64,
    pub block_duration: u64,
    pub number_of_signals: u64,
    pub channels: Vec<EDFChannel>,
}

EDFHeader :

  • 256 bytes of common metadata
  • NumberOfChannels * channel metadata = N * 256 bytes

Fields

file_version: Stringlocal_patient_identification: Stringlocal_recording_identification: Stringstart_date: Stringstart_time: Stringrecord_start_time_in_ms: i64byte_size_header: u64number_of_blocks: u64block_duration: u64number_of_signals: u64channels: Vec<EDFChannel>

Methods

impl EDFHeader[src]

pub fn build_general_header(data: Vec<u8>) -> EDFHeader[src]

pub fn build_channel_headers(&mut self, data: Vec<u8>)[src]

pub fn get_size_of_data_block(&self) -> u64[src]

Trait Implementations

impl PartialEq<EDFHeader> for EDFHeader[src]

impl Clone for EDFHeader[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for EDFHeader[src]

impl Serialize for EDFHeader[src]

impl<'de> Deserialize<'de> for EDFHeader[src]

Auto Trait Implementations

impl Send for EDFHeader

impl Sync for EDFHeader

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]