pub struct UdpPingSession(/* private fields */);Implementations§
Source§impl UdpPingSession
impl UdpPingSession
pub fn new( stack: Weak<StackImpl>, gen_seq: Arc<TempSeqGenerator>, params: UdpSesssionParams, ) -> Self
Trait Implementations§
Source§impl Clone for UdpPingSession
impl Clone for UdpPingSession
Source§fn clone(&self) -> UdpPingSession
fn clone(&self) -> UdpPingSession
Returns a duplicate 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 moreSource§impl Display for UdpPingSession
impl Display for UdpPingSession
Source§impl PingSession for UdpPingSession
impl PingSession for UdpPingSession
fn sn(&self) -> &DeviceId
fn local(&self) -> Endpoint
fn clone_as_ping_session(&self) -> Box<dyn PingSession>
fn reset( &self, local_device: Option<Device>, sn_endpoint: Option<Endpoint>, ) -> Box<dyn PingSession>
fn on_time_escape(&self, now: Timestamp)
fn wait<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyResult<PingSessionResp>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop(&self)
fn on_udp_ping_resp( &self, resp: &SnPingResp, from: &Endpoint, ) -> BuckyResult<()>
Auto Trait Implementations§
impl Freeze for UdpPingSession
impl !RefUnwindSafe for UdpPingSession
impl Send for UdpPingSession
impl Sync for UdpPingSession
impl Unpin for UdpPingSession
impl !UnwindSafe for UdpPingSession
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more