pub struct AuthenticatedChannel { /* private fields */ }Expand description
Authenticated private control channel with a pollable peer-lifecycle handle.
Implementations§
Source§impl AuthenticatedChannel
impl AuthenticatedChannel
Sourcepub fn new(
stream: UnixStream,
expected: PeerCredentials,
nonce: [u8; 32],
) -> Result<Self, LinuxError>
pub fn new( stream: UnixStream, expected: PeerCredentials, nonce: [u8; 32], ) -> Result<Self, LinuxError>
Authenticates an already-private post-exec Unix connection.
Sourcepub const fn peer(&self) -> PeerCredentials
pub const fn peer(&self) -> PeerCredentials
Returns the kernel-authenticated peer credentials.
Sourcepub fn peer_exited(&self) -> Result<bool, LinuxError>
pub fn peer_exited(&self) -> Result<bool, LinuxError>
Returns whether the peer pidfd currently reports exit without blocking.
Sourcepub fn send(
&self,
capability: &ExportedReaderCapability,
) -> Result<(), LinuxError>
pub fn send( &self, capability: &ExportedReaderCapability, ) -> Result<(), LinuxError>
Sends one sealed reader capability with the session nonce and exact size.
Sourcepub fn receive_reader(
&self,
expected_len: usize,
expected: ValidationExpectations,
topology: RegionSetLayout,
) -> Result<ReaderRegion<LinuxReaderMapping>, LinuxError>
pub fn receive_reader( &self, expected_len: usize, expected: ValidationExpectations, topology: RegionSetLayout, ) -> Result<ReaderRegion<LinuxReaderMapping>, LinuxError>
Receives, validates, maps, and binds one read-only capability.
Auto Trait Implementations§
impl Freeze for AuthenticatedChannel
impl RefUnwindSafe for AuthenticatedChannel
impl Send for AuthenticatedChannel
impl Sync for AuthenticatedChannel
impl Unpin for AuthenticatedChannel
impl UnsafeUnpin for AuthenticatedChannel
impl UnwindSafe for AuthenticatedChannel
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