pub struct EndpointControl { /* private fields */ }Expand description
Cloneable command half returned by Endpoint::split.
Implementations§
Source§impl EndpointControl
impl EndpointControl
Sourcepub async fn register_and_wait(
&self,
timeout: Option<Duration>,
) -> Result<EndpointRegistrationInfo>
pub async fn register_and_wait( &self, timeout: Option<Duration>, ) -> Result<EndpointRegistrationInfo>
Register and wait for a registrar success or failure event.
Sourcepub async fn registration_info(
&self,
) -> Result<Option<EndpointRegistrationInfo>>
pub async fn registration_info( &self, ) -> Result<Option<EndpointRegistrationInfo>>
Return the current registration information, if this endpoint registered.
Sourcepub async fn unregister(&self) -> Result<()>
pub async fn unregister(&self) -> Result<()>
Unregister the current account, if registered.
Sourcepub async fn unregister_and_wait(&self, timeout: Option<Duration>) -> Result<()>
pub async fn unregister_and_wait(&self, timeout: Option<Duration>) -> Result<()>
Unregister and wait for registrar confirmation.
Sourcepub async fn events(&self) -> Result<EndpointEvents>
pub async fn events(&self) -> Result<EndpointEvents>
Subscribe to Endpoint-level events.
Sourcepub fn resolve_target(&self, target: &str) -> Result<String>
pub fn resolve_target(&self, target: &str) -> Result<String>
Resolve a dial target using this endpoint’s account context.
Sourcepub fn invite(&self, target: &str) -> Result<OutboundCallBuilder>
pub fn invite(&self, target: &str) -> Result<OutboundCallBuilder>
Begin building an outbound INVITE from this endpoint’s account context. Resolves bare extensions through the configured registrar.
Sourcepub fn wrap_call(&self, call_id: CallId) -> EndpointCall
pub fn wrap_call(&self, call_id: CallId) -> EndpointCall
Materialize an EndpointCall for a CallId returned by
invite(...).send().
Trait Implementations§
Source§impl Clone for EndpointControl
impl Clone for EndpointControl
Source§fn clone(&self) -> EndpointControl
fn clone(&self) -> EndpointControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for EndpointControl
impl !UnwindSafe for EndpointControl
impl Freeze for EndpointControl
impl Send for EndpointControl
impl Sync for EndpointControl
impl Unpin for EndpointControl
impl UnsafeUnpin for EndpointControl
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<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> 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