Struct gstreamer_rtsp_server::RTSPContext
source · pub struct RTSPContext(/* private fields */);
Expand description
Information passed around containing the context of a request.
Implementations§
source§impl RTSPContext
impl RTSPContext
pub fn with_current_context<F: FnOnce(&RTSPContext) -> T, T>( func: F, ) -> Option<T>
pub fn uri(&self) -> Option<&RTSPUrl>
pub fn client(&self) -> Option<&RTSPClient>
pub fn request(&self) -> Option<&RTSPMessage>
pub fn response(&self) -> Option<&RTSPMessage>
pub fn session(&self) -> Option<&RTSPSession>
pub fn token(&self) -> Option<RTSPToken>
Trait Implementations§
source§impl Debug for RTSPContext
impl Debug for RTSPContext
source§impl PartialEq for RTSPContext
impl PartialEq for RTSPContext
impl Eq for RTSPContext
impl StructuralPartialEq for RTSPContext
Auto Trait Implementations§
impl Freeze for RTSPContext
impl RefUnwindSafe for RTSPContext
impl !Send for RTSPContext
impl !Sync for RTSPContext
impl Unpin for RTSPContext
impl UnwindSafe for RTSPContext
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more