pub fn ready_state( &self ) -> FileReaderReadyState {
        let state: i32 = js!( return @{self}.readyState; ).try_into().unwrap();
        match state {
            0 => FileReaderReadyState::Empty,
            1 => FileReaderReadyState::Loading,
            2 => FileReaderReadyState::Done,
            _ => unreachable!( "Unexpected value of FileReader::readyState: {}", state )
        }
    }
/// Returns the current state of the reader.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readyState)
// https://w3c.github.io/FileAPI/#ref-for-dfn-readyState
Returns the current state of the reader.
Returns the current state of the reader .
pub fn ready_state( &self ) -> FileReaderReadyState {
        let state: i32 = js!( return @{self}.readyState; ).try_into().unwrap();
        match state {
            0 => FileReaderReadyState::Empty,
            1 => FileReaderReadyState::Loading,
            2 => FileReaderReadyState::Done,
            _ => unreachable!( "Unexpected value of FileReader::readyState: {}", state )
        }
    }
pub fn ready_state ( & self ) -> FileReaderReadyState { let state : i32 = js ! ( return { self } readyState ) . try_into ( ) . unwrap ( ) ; match state { 0 => FileReaderReadyState :: Empty , 1 => FileReaderReadyState :: Loading , 2 => FileReaderReadyState :: Done , _ => unreachable ! ( " " state ) } }
Returns the current state of the reader.
Returns the current state of the reader .
&self
&self