pub struct stream;Expand description
Handles requests for the /stream/{media_path:.*} endpoint, serving media files and directories.
§Arguments
request- A reference to the Actix webHttpRequestobject.media_path- The path parameter representing the media file or directory.fernet- Fernet object to encrypt the auth payload that will be set assession_tokencookie.session- Session struct that holds thesession_mappingandsession_trackerto handle sessions.metadata- Struct containing metadata of the application.config- Configuration data for the application.template- Configuration container for the loaded templates.
§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 Freeze for stream
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