pub struct C2Client { /* private fields */ }Implementations§
Source§impl C2Client
impl C2Client
pub fn new( address: SocketAddr, token: impl Into<String>, ) -> Result<Self, C2ClientError>
pub fn with_deadline(self, deadline: Duration) -> Self
pub async fn health(&self) -> Result<HealthResponse, C2ClientError>
pub async fn ready(&self) -> Result<ReadyResponse, C2ClientError>
pub async fn status(&self) -> Result<StatusResponse, C2ClientError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for C2Client
impl RefUnwindSafe for C2Client
impl Send for C2Client
impl Sync for C2Client
impl Unpin for C2Client
impl UnsafeUnpin for C2Client
impl UnwindSafe for C2Client
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