pub struct Client {
common: Common,
server_guid: Option<OwnedGuid>,
bus: bool,
}Expand description
A representation of an in-progress handshake, client-side
This struct is an async-compatible representation of the initial handshake that must be performed before a D-Bus connection can be used.
Fields§
§common: Common§server_guid: Option<OwnedGuid>§bus: boolImplementations§
Source§impl Client
impl Client
Sourcepub fn new(
socket: BoxedSplit,
mechanism: Option<AuthMechanism>,
server_guid: Option<OwnedGuid>,
bus: bool,
) -> Client
pub fn new( socket: BoxedSplit, mechanism: Option<AuthMechanism>, server_guid: Option<OwnedGuid>, bus: bool, ) -> Client
Start a handshake on this client socket
fn set_guid(&mut self, guid: OwnedGuid) -> Result<()>
Sourceasync fn authenticate(&mut self) -> Result<()>
async fn authenticate(&mut self) -> Result<()>
Perform the authentication handshake with the server.
Sourceasync fn send_secondary_commands(&mut self) -> Result<usize>
async fn send_secondary_commands(&mut self) -> Result<usize>
Sends out all commands after authentication.
async fn receive_secondary_responses( &mut self, expected_n_responses: usize, ) -> Result<()>
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