Struct LoadBalancingOption
pub struct LoadBalancingOption {
pub flag_reserved: LoadBalancingOptionFlags,
pub priority: u16,
pub weight: u16,
}Available on crate feature
data-support-someip only.Expand description
Load Balancing Option.
Fields§
§flag_reserved: LoadBalancingOptionFlagsLoad balancing option flags.
priority: u16Carries the Priority of this instance. Lower value means higher priority.
weight: u16Carries the Weight of this instance. Large value means higher probability to be chosen.
Trait Implementations§
§impl Clone for LoadBalancingOption
impl Clone for LoadBalancingOption
§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 more§impl Debug for LoadBalancingOption
impl Debug for LoadBalancingOption
§impl<'a> Parse<'a> for LoadBalancingOption
impl<'a> Parse<'a> for LoadBalancingOption
§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
§impl PartialEq for LoadBalancingOption
impl PartialEq for LoadBalancingOption
§impl Serialize for LoadBalancingOption
impl Serialize for LoadBalancingOption
§fn required_length(&self) -> usize
fn required_length(&self) -> usize
Returns the number of bytes required to store the serialized version of self.
§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