pub trait RTSPAuthImpl:
ObjectImpl
+ ObjectSubclass<Type: IsA<RTSPAuth>>
+ Send
+ Sync {
// Provided methods
fn authenticate(&self, ctx: &RTSPContext) -> bool { ... }
fn check(&self, ctx: &RTSPContext, check: &GString) -> bool { ... }
fn generate_authenticate_header(&self, ctx: &RTSPContext) { ... }
}
Provided Methods§
Sourcefn authenticate(&self, ctx: &RTSPContext) -> bool
fn authenticate(&self, ctx: &RTSPContext) -> bool
check the authentication of a client. The default implementation checks if the authentication in the header matches one of the basic authentication tokens. This function should set the authgroup field in the context.
Sourcefn check(&self, ctx: &RTSPContext, check: &GString) -> bool
fn check(&self, ctx: &RTSPContext, check: &GString) -> bool
check if a resource can be accessed. this function should call authenticate to authenticate the client when needed. The method should also construct and send an appropriate response message on error.
fn generate_authenticate_header(&self, ctx: &RTSPContext)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.