pub struct ServerConfig<Auth> {
pub connections: Vec<Arc<dyn Transport + Send + Sync>>,
pub turn: Option<TurnConfig<Auth>>,
}Expand description
Configuration of a Server.
Fields§
§connections: Vec<Arc<dyn Transport + Send + Sync>>List of all STUN/TURN connections listeners.
Each listener may have a custom behavior around the creation of
relays.
turn: Option<TurnConfig<Auth>>Optional TURN server configuration.
Enables TURN support on the provided Transports, otherwise only
STUN (RFC 5389) will be enabled.
Trait Implementations§
Auto Trait Implementations§
impl<Auth> Freeze for Config<Auth>
impl<Auth> !RefUnwindSafe for Config<Auth>
impl<Auth> Send for Config<Auth>
impl<Auth> Sync for Config<Auth>
impl<Auth> Unpin for Config<Auth>
impl<Auth> !UnwindSafe for Config<Auth>
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