pub struct Authenticated {
pub(crate) socket_write: Box<dyn WriteHalf>,
pub(crate) server_guid: OwnedGuid,
pub(crate) cap_unix_fd: bool,
pub(crate) socket_read: Option<Box<dyn ReadHalf>>,
pub(crate) already_received_bytes: Vec<u8>,
pub(crate) already_received_fds: Vec<OwnedFd>,
pub(crate) unique_name: Option<OwnedUniqueName>,
}Expand description
The result of a finalized handshake
The result of a finalized ClientHandshake or ServerHandshake.
Fields§
§socket_write: Box<dyn WriteHalf>§server_guid: OwnedGuidThe server Guid
cap_unix_fd: boolWhether file descriptor passing has been accepted by both sides
socket_read: Option<Box<dyn ReadHalf>>§already_received_bytes: Vec<u8>§already_received_fds: Vec<OwnedFd>§unique_name: Option<OwnedUniqueName>Implementations§
Source§impl Authenticated
impl Authenticated
Sourcepub async fn client(
socket: BoxedSplit,
server_guid: Option<OwnedGuid>,
mechanism: Option<AuthMechanism>,
bus: bool,
) -> Result<Self>
pub async fn client( socket: BoxedSplit, server_guid: Option<OwnedGuid>, mechanism: Option<AuthMechanism>, bus: bool, ) -> Result<Self>
Create a client-side Authenticated for the given socket.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Authenticated
impl !RefUnwindSafe for Authenticated
impl Send for Authenticated
impl Sync for Authenticated
impl Unpin for Authenticated
impl !UnwindSafe for Authenticated
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