pub struct stream;Expand description
Handles requests for the ‘/stream/{media_path:.*}’ endpoint, serving media files and directories.
§Arguments
config- Configuration data for the application.environment- Configuration container for the loaded templates.request- A reference to the Actix webHttpRequestobject.media_path- The path parameter representing the media file or directory.
§Returns
Returns an HttpResponse containing the media 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