pub struct LoadBalancingOption {
pub flag_reserved: LoadBalancingOptionFlags,
pub priority: u16,
pub weight: u16,
}
Expand description
Load Balancing Option.
Fields§
§flag_reserved: LoadBalancingOptionFlags
Load balancing option flags.
priority: u16
Carries the Priority of this instance. Lower value means higher priority.
weight: u16
Carries the Weight of this instance. Large value means higher probability to be chosen.
Trait Implementations§
Source§impl Clone for LoadBalancingOption
impl Clone for LoadBalancingOption
Source§fn clone(&self) -> LoadBalancingOption
fn clone(&self) -> LoadBalancingOption
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 LoadBalancingOption
impl Debug for LoadBalancingOption
Source§impl<'a> Parse<'a> for LoadBalancingOption
impl<'a> Parse<'a> for LoadBalancingOption
Source§fn parse_partial(
reader: &mut ByteReader<'a>,
) -> Result<LoadBalancingOption, ParseError>
fn parse_partial( reader: &mut ByteReader<'a>, ) -> Result<LoadBalancingOption, ParseError>
Parses a SOME/IP payload type from a given slice of bytes. Read more
Source§impl PartialEq for LoadBalancingOption
impl PartialEq for LoadBalancingOption
Source§impl Serialize for LoadBalancingOption
impl Serialize for LoadBalancingOption
Source§fn required_length(&self) -> usize
fn required_length(&self) -> usize
Returns the number of bytes required to store the serialized version of self.
Source§fn serialize_partial(
&self,
writer: &mut ByteWriter<'_>,
) -> Result<(), SerializeError>
fn serialize_partial( &self, writer: &mut ByteWriter<'_>, ) -> Result<(), SerializeError>
Serializes to a byte writer.
impl Eq for LoadBalancingOption
impl StructuralPartialEq for LoadBalancingOption
Auto Trait Implementations§
impl Freeze for LoadBalancingOption
impl RefUnwindSafe for LoadBalancingOption
impl Send for LoadBalancingOption
impl Sync for LoadBalancingOption
impl Unpin for LoadBalancingOption
impl UnwindSafe for LoadBalancingOption
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