pub struct PowerAssertionClient<S> { /* private fields */ }Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> PowerAssertionClient<S>
impl<S: AsyncRead + AsyncWrite + Unpin> PowerAssertionClient<S>
pub fn new(stream: S) -> Self
pub async fn create_assertion( &mut self, assertion_type: &str, name: &str, timeout_seconds: f64, details: Option<&str>, ) -> Result<Dictionary, PowerAssertionError>
Auto Trait Implementations§
impl<S> Freeze for PowerAssertionClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for PowerAssertionClient<S>where
S: RefUnwindSafe,
impl<S> Send for PowerAssertionClient<S>where
S: Send,
impl<S> Sync for PowerAssertionClient<S>where
S: Sync,
impl<S> Unpin for PowerAssertionClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for PowerAssertionClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for PowerAssertionClient<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