pub struct ActiveSession { /* private fields */ }Implementations§
Source§impl ActiveSession
impl ActiveSession
pub fn client(&self) -> &AlpineClient
pub fn client_mut(&mut self) -> &mut AlpineClient
pub fn trust_state(&self) -> DeviceTrustState
pub fn trust_policy(&self) -> TrustPolicy
pub fn set_trust_policy(&mut self, policy: TrustPolicy)
pub fn run_id(&self) -> Option<&str>
pub fn quarantine_reason(&self) -> Option<&str>
pub async fn control( &self, command: ControlCommand, ) -> Result<ControlResponse, AlpineSdkError>
pub async fn control_with_options( &self, command: ControlCommand, options: ControlOptions, ) -> Result<ControlResponse, AlpineSdkError>
pub fn start_stream( &mut self, profile: StreamProfile, ) -> Result<String, AlpineSdkError>
pub async fn close(self)
pub fn into_inner(self) -> AlpineClient
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ActiveSession
impl !RefUnwindSafe for ActiveSession
impl !UnwindSafe for ActiveSession
impl Send for ActiveSession
impl Sync for ActiveSession
impl Unpin for ActiveSession
impl UnsafeUnpin for ActiveSession
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