pub struct Call { /* private fields */ }Expand description
Implementations§
Source§impl Call
impl Call
Sourcepub fn peer(&self) -> EndpointId
pub fn peer(&self) -> EndpointId
Returns the peer on the other side.
Sourcepub fn subscription(&self) -> &Subscription
pub fn subscription(&self) -> &Subscription
Returns the subscription to the peer’s side.
Sourcepub async fn ended(&self) -> HangUpReason
pub async fn ended(&self) -> HangUpReason
Waits until the call ends, and returns why.
Cancellation safe.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Call
impl !UnwindSafe for Call
impl Freeze for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
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