#[repr(C)]pub struct NetRateControlInformation {
pub max_bandwidth: u64,
pub control_flags: NetRateControlFlags,
pub dscp_tag: u8,
}Expand description
[docs.microsoft.com] JOBOBJECT_NET_RATE_CONTROL_INFORMATION
Fields§
§max_bandwidth: u64Limit the maximum number of outgoing network traffic bytes for the job.
Ignored unless control_flags has NET_RATE_CONTROL_ENABLE and NET_RATE_CONTROL_MAX_BANDWIDTH set?
control_flags: NetRateControlFlagsControl which field(s) of this NetRateControlInformation to use.
dscp_tag: u8Control the differentiated services code point tag.
Ignored unless control_flags has NET_RATE_CONTROL_ENABLE and NET_RATE_CONTROL_DSCP_TAG set?
Trait Implementations§
Source§impl Clone for NetRateControlInformation
impl Clone for NetRateControlInformation
Source§fn clone(&self) -> NetRateControlInformation
fn clone(&self) -> NetRateControlInformation
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 moreimpl Copy for NetRateControlInformation
Source§impl Debug for NetRateControlInformation
impl Debug for NetRateControlInformation
Source§impl Default for NetRateControlInformation
impl Default for NetRateControlInformation
Source§fn default() -> NetRateControlInformation
fn default() -> NetRateControlInformation
Returns the “default value” for a type. Read more
Source§impl QueryInformationJobObject for NetRateControlInformation
impl QueryInformationJobObject for NetRateControlInformation
fn query_from(job: &OwnedHandle) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for NetRateControlInformation
impl RefUnwindSafe for NetRateControlInformation
impl Send for NetRateControlInformation
impl Sync for NetRateControlInformation
impl Unpin for NetRateControlInformation
impl UnsafeUnpin for NetRateControlInformation
impl UnwindSafe for NetRateControlInformation
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