pub enum OcParameter {
Support,
Value(u64),
}Expand description
The overload-control capability or value carried by Via’s oc parameter (RFC 7339 §4.1).
Variants§
Support
A valueless parameter: the client supports overload control.
Value(u64)
A server report. Its units are selected by OverloadAlgorithm.
Trait Implementations§
Source§impl Clone for OcParameter
impl Clone for OcParameter
Source§fn clone(&self) -> OcParameter
fn clone(&self) -> OcParameter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OcParameter
impl Debug for OcParameter
Source§impl PartialEq for OcParameter
impl PartialEq for OcParameter
Source§fn eq(&self, other: &OcParameter) -> bool
fn eq(&self, other: &OcParameter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OcParameter
impl Eq for OcParameter
impl StructuralPartialEq for OcParameter
Auto Trait Implementations§
impl Freeze for OcParameter
impl RefUnwindSafe for OcParameter
impl Send for OcParameter
impl Sync for OcParameter
impl Unpin for OcParameter
impl UnsafeUnpin for OcParameter
impl UnwindSafe for OcParameter
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