pub struct stream;Expand description
Handles requests for the ‘/stream/{video_path:.*}’ endpoint, serving video files and directories.
§Arguments
config- The configuration settings.request- The HTTP request.video_path- The path parameter representing the video file or directory.
§Returns
Returns an HttpResponse containing the video content or directory listing, or an error response.
Trait Implementations§
source§impl HttpServiceFactory for stream
impl HttpServiceFactory for stream
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl RefUnwindSafe for stream
impl Send for stream
impl Sync for stream
impl Unpin for stream
impl UnwindSafe for stream
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