pub fn apply_changes(&mut self, timeout: Option<Duration>, wait: bool) -> Result<(), i32> {
        let timeout_ms = timeout.map_or(0, |timeout| timeout.as_millis() as u32);

        let rc = unsafe { sr_apply_changes(self.sess, timeout_ms, if wait { 1 } else { 0 }) };
        if rc != SrError::Ok as i32 {
            Err(rc)
        } else {
            Ok(())
        }
    }
/// Apply changes for the session.
Apply changes for the session.
Apply changes for the session .
pub fn apply_changes(&mut self, timeout: Option<Duration>, wait: bool) -> Result<(), i32> {
        let timeout_ms = timeout.map_or(0, |timeout| timeout.as_millis() as u32);
        let rc = unsafe { sr_apply_changes(self.sess, timeout_ms, if wait { 1 } else { 0 }) };
        if rc != SrError::Ok as i32 {
            Err(rc)
        } else {
            Ok(())
        }
    }
pub fn apply_changes ( & mut self , timeout : Option < Duration > , wait : bool ) -> Result < ( ) , i32 > { let timeout_ms = timeout . map_or ( 0 , | timeout | timeout . as_millis ( ) as u32 ) ; let rc = unsafe { sr_apply_changes ( self . sess , timeout_ms , if wait { 1 } else { 0 } ) } ; if rc != SrError :: Ok as i32 { Err ( rc ) } else { Ok ( ( ) ) } }
Apply changes for the session.
Apply changes for the session .
&mut self
timeout
Option<Duration>
wait
bool
&mut self
timeout
Option<Duration>
wait
bool