pub struct SafeClient { /* private fields */ }Implementations§
Source§impl SafeClient
impl SafeClient
pub async fn from_client( client: AlpineClient, trust: DeviceTrustState, options: SafeClientOptions, ) -> Result<Self, AlpineSdkError>
pub async fn from_discovery( client: AlpineClient, outcome: &DiscoveryOutcome, options: SafeClientOptions, ) -> Result<Self, AlpineSdkError>
pub fn client(&self) -> &AlpineClient
pub fn client_mut(&mut self) -> &mut AlpineClient
pub fn last_probe(&self) -> &ProbeResult
pub fn last_known_good(&self) -> Option<&ProbeResult>
pub fn last_known_good_delta(&self) -> Option<String>
pub fn trust_state(&self) -> DeviceTrustState
pub async fn refresh_probe(&mut self) -> Result<&ProbeResult, AlpineSdkError>
pub async fn control( &mut self, command: ControlCommand, ) -> Result<ControlResponse, AlpineSdkError>
pub async fn start_stream( &mut self, profile: StreamProfile, ) -> Result<String, AlpineSdkError>
pub async fn send_frame( &mut self, channel_format: ChannelFormat, channels: Vec<u16>, priority: u8, groups: Option<HashMap<String, Vec<u16>>>, metadata: Option<HashMap<String, Value>>, ) -> Result<(), AlpineSdkError>
pub async fn close(self)
pub fn into_inner(self) -> AlpineClient
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SafeClient
impl !RefUnwindSafe for SafeClient
impl !UnwindSafe for SafeClient
impl Send for SafeClient
impl Sync for SafeClient
impl Unpin for SafeClient
impl UnsafeUnpin for SafeClient
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