Struct tonic::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§
source§impl Clone for UdsConnectInfo
impl Clone for UdsConnectInfo
source§fn clone(&self) -> UdsConnectInfo
fn clone(&self) -> UdsConnectInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for UdsConnectInfo
impl RefUnwindSafe for UdsConnectInfo
impl Send for UdsConnectInfo
impl Sync for UdsConnectInfo
impl Unpin for UdsConnectInfo
impl UnwindSafe for UdsConnectInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request