pub struct RegistrationHandle {
pub registration: Registration,
pub option: RegisterOption,
pub cancel_token: CancellationToken,
pub start_time: Instant,
pub last_update: Instant,
pub last_response: Option<Response>,
}Fields§
§registration: Registration§option: RegisterOption§cancel_token: CancellationToken§start_time: Instant§last_update: Instant§last_response: Option<Response>Implementations§
Source§impl RegistrationHandle
impl RegistrationHandle
pub fn should_retry_registration_now( &self, local_addr: &SipAddr, current_contact_address: &HostWithPort, discovered_public_address: Option<&HostWithPort>, ) -> bool
pub async fn do_register( &mut self, sip_server: &Uri, expires: Option<u32>, contact: &Contact, ) -> Result<(u32, Option<HostWithPort>)>
Auto Trait Implementations§
impl Freeze for RegistrationHandle
impl !RefUnwindSafe for RegistrationHandle
impl Send for RegistrationHandle
impl Sync for RegistrationHandle
impl Unpin for RegistrationHandle
impl UnsafeUnpin for RegistrationHandle
impl !UnwindSafe for RegistrationHandle
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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> 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