pub struct streaming_endpoint;Expand description
Handles requests for the /media endpoint, serving media content for streaming.
§Arguments
request- A reference to the Actix webHttpRequestobject.info- The query parameter containing the file information.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 an error response.
Trait Implementations§
Source§impl HttpServiceFactory for streaming_endpoint
impl HttpServiceFactory for streaming_endpoint
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl Freeze for streaming_endpoint
impl RefUnwindSafe for streaming_endpoint
impl Send for streaming_endpoint
impl Sync for streaming_endpoint
impl Unpin for streaming_endpoint
impl UnwindSafe for streaming_endpoint
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