pub struct ProxyRoute {
pub upstreams: Vec<UpstreamEndpoint>,
pub reconnect: ReconnectPolicy,
pub failover: FailoverPolicy,
pub continuity: ContinuityPolicy,
pub startup_cache: StartupCacheConfig,
pub cached_description: Option<Arc<MediaDescription>>,
}Fields§
§upstreams: Vec<UpstreamEndpoint>§reconnect: ReconnectPolicy§failover: FailoverPolicy§continuity: ContinuityPolicy§startup_cache: StartupCacheConfig§cached_description: Option<Arc<MediaDescription>>Implementations§
Source§impl ProxyRoute
impl ProxyRoute
pub fn new(primary: UpstreamEndpoint) -> Self
pub fn add_fallback(self, endpoint: UpstreamEndpoint) -> Self
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for ProxyRoute
impl Clone for ProxyRoute
Source§impl Debug for ProxyRoute
impl Debug for ProxyRoute
Source§impl TryFrom<ProxyRoute> for UpstreamConfig
impl TryFrom<ProxyRoute> for UpstreamConfig
Auto Trait Implementations§
impl Forget for ProxyRoute
impl Freeze for ProxyRoutewhere
*const u8 is !null: Freeze,
PhantomData<UpstreamEndpoint>: Freeze,
*const ArcInner<MediaDescription> is !null: Freeze,
PhantomData<ArcInner<MediaDescription>>: Freeze,
impl Move for ProxyRoute
impl RefUnwindSafe for ProxyRoute
impl Send for ProxyRoute
impl Sync for ProxyRoute
impl Unpin for ProxyRoute
impl UnsafeUnpin for ProxyRoutewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<UpstreamEndpoint>: UnsafeUnpin,
*const ArcInner<MediaDescription> is !null: UnsafeUnpin,
PhantomData<ArcInner<MediaDescription>>: UnsafeUnpin,
impl UnwindSafe for ProxyRoute
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