pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new(options: Options) -> Self
Sourcepub fn enqueue_command(&mut self, command: Command<'static>) -> CommandHandle
pub fn enqueue_command(&mut self, command: Command<'static>) -> CommandHandle
Enqueues the Command
for being sent to the client.
The Command
is not sent immediately but during one of the next calls of
Client::next
. All Command
s are sent in the same order they have been
enqueued.
pub fn set_authenticate_data( &mut self, authenticate_data: AuthenticateData<'static>, ) -> Result<CommandHandle, AuthenticateData<'static>>
pub fn set_idle_done(&mut self) -> Option<CommandHandle>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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