pub struct TransportConstraints {
pub AllowedTransports: Vec<TransportType>,
pub ForbiddenTransports: Vec<TransportType>,
pub MaximumLatencyMilliseconds: Option<u64>,
pub MaximumBandwidthBytesPerSecond: Option<u64>,
}Expand description
Transport selection constraints.
Fields§
§AllowedTransports: Vec<TransportType>Allowed transport types (empty means all allowed)
ForbiddenTransports: Vec<TransportType>Forbidden transport types
MaximumLatencyMilliseconds: Option<u64>Maximum allowed latency in milliseconds
MaximumBandwidthBytesPerSecond: Option<u64>Maximum allowed bandwidth in bytes per second
Trait Implementations§
Source§impl Clone for TransportConstraints
impl Clone for TransportConstraints
Source§fn clone(&self) -> TransportConstraints
fn clone(&self) -> TransportConstraints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportConstraints
impl Debug for TransportConstraints
Auto Trait Implementations§
impl Freeze for TransportConstraints
impl RefUnwindSafe for TransportConstraints
impl Send for TransportConstraints
impl Sync for TransportConstraints
impl Unpin for TransportConstraints
impl UnsafeUnpin for TransportConstraints
impl UnwindSafe for TransportConstraints
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