Struct teaclave_rpc::transport::server::UdsConnectInfo
source · [−]pub struct UdsConnectInfo {
pub peer_addr: Option<Arc<SocketAddr>>,
pub peer_cred: Option<UCred>,
}
Expand description
Connection info for Unix domain socket streams.
This type will be accessible through request extensions if you’re using a unix stream.
See Connected for more details.
Fields
peer_addr: Option<Arc<SocketAddr>>
Peer address. This will be “unnamed” for client unix sockets.
peer_cred: Option<UCred>
Process credentials for the unix socket.
Trait Implementations
sourceimpl Clone for UdsConnectInfo
impl Clone for UdsConnectInfo
sourcefn clone(&self) -> UdsConnectInfo
fn clone(&self) -> UdsConnectInfo
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for UdsConnectInfo
impl Send for UdsConnectInfo
impl Sync for UdsConnectInfo
impl Unpin for UdsConnectInfo
impl UnwindSafe for UdsConnectInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request