pub struct API(/* private fields */);Expand description
SC2 API. Can be accessed through self.api().
Implementations§
Source§impl API
impl API
Sourcepub fn send_request(&self, req: Request) -> SC2Result<()>
pub fn send_request(&self, req: Request) -> SC2Result<()>
Sends request, waits for the response, but ignores it (useful when response is empty).
Sourcepub fn send_only(&self, req: Request) -> SC2Result<()>
pub fn send_only(&self, req: Request) -> SC2Result<()>
Sends request, but doesn’t wait for the response (use only when more control required,
in common cases prefered to use send or send_request).
Sourcepub fn wait_response(&self) -> SC2Result<Response>
pub fn wait_response(&self) -> SC2Result<Response>
Waits for a response (useful only after send_only).
Auto Trait Implementations§
impl !Freeze for API
impl !RefUnwindSafe for API
impl Send for API
impl !Sync for API
impl Unpin for API
impl UnwindSafe for API
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