pub struct TurnConfig<Auth> {
pub relay_addr_generator: Allocator,
pub realm: String,
pub auth_handler: Arc<Auth>,
pub channel_bind_lifetime: Duration,
pub alloc_close_notify: Option<Sender<Info>>,
}Expand description
TURN server configuration.
Fields§
§relay_addr_generator: Allocator§realm: StringA string used to describe the server or a context within the server. The realm tells the client which username and password combination to use to authenticate requests.
auth_handler: Arc<Auth>Callback for handling incoming authentication requests, allowing users to customize it with custom behavior.
channel_bind_lifetime: DurationLifetime of a channel bindings.
alloc_close_notify: Option<Sender<Info>>mpsc::Sender receiving notify on allocation close event, along
with metrics data.
Trait Implementations§
Source§impl<Auth> Clone for TurnConfig<Auth>
impl<Auth> Clone for TurnConfig<Auth>
Auto Trait Implementations§
impl<Auth> Freeze for TurnConfig<Auth>
impl<Auth> RefUnwindSafe for TurnConfig<Auth>where
Auth: RefUnwindSafe,
impl<Auth> Send for TurnConfig<Auth>
impl<Auth> Sync for TurnConfig<Auth>
impl<Auth> Unpin for TurnConfig<Auth>
impl<Auth> UnwindSafe for TurnConfig<Auth>where
Auth: RefUnwindSafe,
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