pub struct DatagramRequests { /* private fields */ }Expand description
Handles on-demand datagram tracks for a broadcast, like Requests does stream tracks.
Created by Requests::datagrams. When the last handle drops, the requests it never
took are rejected with Error::Dropped.
Implementations§
Source§impl DatagramRequests
impl DatagramRequests
Sourcepub fn poll_requested(
&mut self,
waiter: &Waiter,
) -> Poll<Result<Request, Error>>
pub fn poll_requested( &mut self, waiter: &Waiter, ) -> Poll<Result<Request, Error>>
The next datagram track a consumer asks for, to accept or reject.
Returns Error::Closed once the broadcast has ended.
Sourcepub async fn requested(&mut self) -> Result<Request, Error>
pub async fn requested(&mut self) -> Result<Request, Error>
The next datagram track a consumer asks for, to accept or reject.
Returns Error::Closed once the broadcast has ended.
Awaits poll_requested.
Trait Implementations§
Source§impl Clone for DatagramRequests
impl Clone for DatagramRequests
Source§impl Drop for DatagramRequests
impl Drop for DatagramRequests
Auto Trait Implementations§
impl Freeze for DatagramRequests
impl RefUnwindSafe for DatagramRequests
impl Send for DatagramRequests
impl Sync for DatagramRequests
impl Unpin for DatagramRequests
impl UnsafeUnpin for DatagramRequests
impl UnwindSafe for DatagramRequests
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