pub struct McInstallClient<S> { /* private fields */ }Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> McInstallClient<S>
impl<S: AsyncRead + AsyncWrite + Unpin> McInstallClient<S>
pub fn new(stream: S) -> Self
pub async fn list_profiles( &mut self, ) -> Result<Vec<ProfileInfo>, McInstallError>
pub async fn get_profile_list_raw(&mut self) -> Result<Value, McInstallError>
pub async fn get_cloud_configuration( &mut self, ) -> Result<Dictionary, McInstallError>
pub async fn get_stored_profile_raw( &mut self, purpose: &str, ) -> Result<Value, McInstallError>
pub async fn flush(&mut self) -> Result<(), McInstallError>
pub async fn hello_host_identifier(&mut self) -> Result<(), McInstallError>
pub async fn set_cloud_configuration( &mut self, cloud_configuration: Dictionary, ) -> Result<(), McInstallError>
pub async fn install_profile( &mut self, payload: &[u8], ) -> Result<(), McInstallError>
pub async fn install_profile_silent( &mut self, payload: &[u8], p12_bytes: &[u8], password: &str, ) -> Result<(), McInstallError>
pub async fn remove_profile( &mut self, identifier: &str, ) -> Result<(), McInstallError>
pub async fn erase_device( &mut self, preserve_data_plan: bool, disallow_proximity_setup: bool, ) -> Result<(), McInstallError>
pub async fn escalate_unsupervised(&mut self) -> Result<(), McInstallError>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for McInstallClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for McInstallClient<S>where
S: RefUnwindSafe,
impl<S> Send for McInstallClient<S>where
S: Send,
impl<S> Sync for McInstallClient<S>where
S: Sync,
impl<S> Unpin for McInstallClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for McInstallClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for McInstallClient<S>where
S: UnwindSafe,
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
Mutably borrows from an owned value. Read more