pub struct IncomingSession(/* private fields */);Expand description
IntoFuture for an in-progress incoming connection attempt.
Created by Endpoint::accept.
Implementations§
Source§impl IncomingSession
impl IncomingSession
Sourcepub fn remote_address(&self) -> SocketAddr
pub fn remote_address(&self) -> SocketAddr
The peer’s UDP address.
Sourcepub fn remote_address_validated(&self) -> bool
pub fn remote_address_validated(&self) -> bool
Whether the socket address that is initiating this connection has been validated.
This means that the sender of the initial packet has proved that they can receive traffic
sent to self.remote_address().
Trait Implementations§
Source§impl IntoFuture for IncomingSession
impl IntoFuture for IncomingSession
Source§type IntoFuture = IncomingSessionFuture
type IntoFuture = IncomingSessionFuture
Which kind of future are we turning this into?
Source§type Output = Result<SessionRequest, ConnectionError>
type Output = Result<SessionRequest, ConnectionError>
The output that the future will produce on completion.
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !Freeze for IncomingSession
impl !RefUnwindSafe for IncomingSession
impl Send for IncomingSession
impl Sync for IncomingSession
impl Unpin for IncomingSession
impl !UnwindSafe for IncomingSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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