pub struct EmapiSession<C> { /* private fields */ }Implementations§
Source§impl<C> EmapiSession<C>where
C: EmapiConnection,
impl<C> EmapiSession<C>where
C: EmapiConnection,
pub fn new(connection: C) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn set_timeout(&mut self, timeout: Duration)
pub fn with_max_retries(self, max_retries: usize) -> Result<Self>
pub fn set_max_retries(&mut self, max_retries: usize)
pub fn reports(&self) -> &[EmapiReport]
pub fn read_report(&mut self) -> Result<EmapiReport>
pub fn into_inner(self) -> C
pub fn send_and_wait<F>( &mut self, command: EmapiCommand, expected: F, ) -> Result<EmapiCommand>
Auto Trait Implementations§
impl<C> Freeze for EmapiSession<C>where
C: Freeze,
impl<C> RefUnwindSafe for EmapiSession<C>where
C: RefUnwindSafe,
impl<C> Send for EmapiSession<C>where
C: Send,
impl<C> Sync for EmapiSession<C>where
C: Sync,
impl<C> Unpin for EmapiSession<C>where
C: Unpin,
impl<C> UnsafeUnpin for EmapiSession<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for EmapiSession<C>where
C: 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