pub struct InboundRequests { /* private fields */ }Expand description
A stream of a Call’s inbound in-dialog requests (peer re-INVITE /
INFO), produced by Call::inbound_requests.
Dropping it unregisters the dialog, so its inbound requests revert to being
auto-answered 200 OK by the endpoint.
Implementations§
Source§impl InboundRequests
impl InboundRequests
Sourcepub async fn recv(&mut self) -> Option<InboundRequest>
pub async fn recv(&mut self) -> Option<InboundRequest>
Await the next inbound request, or None once the call’s endpoint shuts
down or this stream is being torn down.
Trait Implementations§
Source§impl Drop for InboundRequests
impl Drop for InboundRequests
Auto Trait Implementations§
impl !RefUnwindSafe for InboundRequests
impl !UnwindSafe for InboundRequests
impl Freeze for InboundRequests
impl Send for InboundRequests
impl Sync for InboundRequests
impl Unpin for InboundRequests
impl UnsafeUnpin for InboundRequests
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