#[non_exhaustive]pub enum Request {
Publish(Publish),
Subscribe(Subscribe),
}Expand description
What an accepted SRT connection wants: to contribute media (Publish) or to
view it (Subscribe).
Yielded by Server::accept, classified by the stream id’s m= mode.
Inspect resource / stream_id, then
match to authorize the right direction. Dropping it without accepting or
rejecting drops the connection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Publish(Publish)
A client pushing media in (OBS, ffmpeg). Ingest it with Publish::accept.
Subscribe(Subscribe)
A client pulling media out (VLC, ffmpeg). Serve it with Subscribe::accept.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Request
impl !UnwindSafe for Request
impl Freeze for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
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