Struct SocketBufferSizeRange
pub struct SocketBufferSizeRange {
pub max: Option<u32>,
pub default: Option<u32>,
pub min: Option<u32>,
/* private fields */
}
Expand description
Socket buffer size range settings.
Fields§
§max: Option<u32>
The maximum allowed buffer size.
Must be nonzero and greater than or equal to min
.
default: Option<u32>
The default buffer size for newly created sockets.
When updating, must be between min
and max
.
Must be nonzero.
min: Option<u32>
The minimum allowed buffer size.
Must be nonzero and less than or equal to max
.
Trait Implementations§
§impl Clone for SocketBufferSizeRange
impl Clone for SocketBufferSizeRange
§fn clone(&self) -> SocketBufferSizeRange
fn clone(&self) -> SocketBufferSizeRange
Returns a copy 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 SocketBufferSizeRange
impl Debug for SocketBufferSizeRange
§impl<D> Decode<SocketBufferSizeRange, D> for SocketBufferSizeRangewhere
D: ResourceDialect,
impl<D> Decode<SocketBufferSizeRange, D> for SocketBufferSizeRangewhere
D: ResourceDialect,
§fn new_empty() -> SocketBufferSizeRange
fn new_empty() -> SocketBufferSizeRange
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for SocketBufferSizeRange
impl Default for SocketBufferSizeRange
§fn default() -> SocketBufferSizeRange
fn default() -> SocketBufferSizeRange
Returns the “default value” for a type. Read more
§impl<D> Encode<SocketBufferSizeRange, D> for &SocketBufferSizeRangewhere
D: ResourceDialect,
impl<D> Encode<SocketBufferSizeRange, D> for &SocketBufferSizeRangewhere
D: ResourceDialect,
§impl PartialEq for SocketBufferSizeRange
impl PartialEq for SocketBufferSizeRange
§impl TypeMarker for SocketBufferSizeRange
impl TypeMarker for SocketBufferSizeRange
§type Owned = SocketBufferSizeRange
type Owned = SocketBufferSizeRange
The owned Rust type which this FIDL type decodes into.
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for SocketBufferSizeRange
impl ValueTypeMarker for SocketBufferSizeRange
§type Borrowed<'a> = &'a SocketBufferSizeRange
type Borrowed<'a> = &'a SocketBufferSizeRange
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<SocketBufferSizeRange as TypeMarker>::Owned,
) -> <SocketBufferSizeRange as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<SocketBufferSizeRange as TypeMarker>::Owned, ) -> <SocketBufferSizeRange as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Persistable for SocketBufferSizeRange
impl StructuralPartialEq for SocketBufferSizeRange
Auto Trait Implementations§
impl Freeze for SocketBufferSizeRange
impl RefUnwindSafe for SocketBufferSizeRange
impl Send for SocketBufferSizeRange
impl Sync for SocketBufferSizeRange
impl Unpin for SocketBufferSizeRange
impl UnwindSafe for SocketBufferSizeRange
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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