pub struct BroadcastRequest { /* private fields */ }Expand description
A pending request for a broadcast that was not announced.
Yielded by OriginDynamic::requested_broadcast. The requester is awaiting inside
OriginConsumer::request_broadcast; accept resolves it with a live
broadcast (which the handler keeps producing into) and reject resolves
it with an error. Dropping the request without either rejects it.
Implementations§
Source§impl BroadcastRequest
impl BroadcastRequest
Sourcepub fn accept(self, broadcast: BroadcastConsumer)
pub fn accept(self, broadcast: BroadcastConsumer)
Accept the request, resolving every awaiting requester with broadcast.
The caller keeps producing into broadcast (e.g. a relay proxying tracks from
upstream); the requesters receive a consumer for it. The broadcast is not
announced.
Auto Trait Implementations§
impl Freeze for BroadcastRequest
impl RefUnwindSafe for BroadcastRequest
impl Send for BroadcastRequest
impl Sync for BroadcastRequest
impl Unpin for BroadcastRequest
impl UnsafeUnpin for BroadcastRequest
impl UnwindSafe for BroadcastRequest
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