pub struct Manager { /* private fields */ }
Implementations§
Source§impl Manager
impl Manager
pub fn new() -> Self
pub async fn connect_and_login( &mut self, options: ManagerOptions, ) -> Result<(), AmiError>
pub async fn send_action( &self, action: AmiAction, ) -> Result<AmiResponse, AmiError>
pub async fn disconnect(&self) -> Result<(), AmiError>
pub async fn is_authenticated(&self) -> bool
pub async fn all_events_stream( &self, ) -> impl Stream<Item = Result<AmiEvent, BroadcastStreamRecvError>> + Send + Unpin
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manager
impl !RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
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