MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / rotate_left

Method rotate_left

packages/server/src/native/bridge.rs:776–788  ·  view source on GitHub ↗
(&self, udid: &str)

Source from the content-addressed store, hash-verified

774 }
775
776 pub fn rotate_left(&self, udid: &str) -> Result<(), AppError> {
777 if self.simulator_has_fixed_orientation(udid).unwrap_or(false) {
778 return Err(fixed_orientation_error());
779 }
780 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
781 unsafe {
782 let mut error = ptr::null_mut();
783 bool_result(
784 ffi::xcw_native_rotate_left(udid.as_ptr(), &mut error),
785 error,
786 )
787 }
788 }
789
790 pub fn erase_simulator(&self, udid: &str) -> Result<(), AppError> {
791 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;

Callers 4

run_batch_stepFunction · 0.45
run_control_messageFunction · 0.45

Calls 5

fixed_orientation_errorFunction · 0.85
bool_resultFunction · 0.85
xcw_native_rotate_leftFunction · 0.85

Tested by

no test coverage detected