pub struct ArbitrationClient<S> { /* private fields */ }Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> ArbitrationClient<S>
impl<S: AsyncRead + AsyncWrite + Unpin> ArbitrationClient<S>
pub fn new(stream: S) -> Self
pub async fn version(&mut self) -> Result<Dictionary, ArbitrationError>
pub async fn check_in( &mut self, hostname: &str, force: bool, ) -> Result<(), ArbitrationError>
pub async fn check_out(&mut self) -> Result<(), ArbitrationError>
Auto Trait Implementations§
impl<S> Freeze for ArbitrationClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for ArbitrationClient<S>where
S: RefUnwindSafe,
impl<S> Send for ArbitrationClient<S>where
S: Send,
impl<S> Sync for ArbitrationClient<S>where
S: Sync,
impl<S> Unpin for ArbitrationClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for ArbitrationClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ArbitrationClient<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