pub struct SocketFlags {
pub ipv6_only: bool,
pub udp_reuse_port: bool,
}
Expand description
The table SocketFlags
in the namespace FBS.Transport
Generated from these locations:
- Table
SocketFlags
in the filefbs/transport.fbs:21
Fields§
§ipv6_only: bool
The field ipv6_only
in the table SocketFlags
udp_reuse_port: bool
The field udp_reuse_port
in the table SocketFlags
Implementations§
Source§impl SocketFlags
impl SocketFlags
Sourcepub fn builder() -> SocketFlagsBuilder<()>
pub fn builder() -> SocketFlagsBuilder<()>
Creates a SocketFlagsBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_ipv6_only: impl WriteAsDefault<bool, bool>, field_udp_reuse_port: impl WriteAsDefault<bool, bool>, ) -> Offset<Self>
Trait Implementations§
Source§impl Clone for SocketFlags
impl Clone for SocketFlags
Source§fn clone(&self) -> SocketFlags
fn clone(&self) -> SocketFlags
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 moreSource§impl Debug for SocketFlags
impl Debug for SocketFlags
Source§impl Default for SocketFlags
impl Default for SocketFlags
Source§impl<'de> Deserialize<'de> for SocketFlags
impl<'de> Deserialize<'de> for SocketFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SocketFlags
impl Hash for SocketFlags
Source§impl Ord for SocketFlags
impl Ord for SocketFlags
Source§fn cmp(&self, other: &SocketFlags) -> Ordering
fn cmp(&self, other: &SocketFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SocketFlags
impl PartialEq for SocketFlags
Source§impl PartialOrd for SocketFlags
impl PartialOrd for SocketFlags
Source§impl Serialize for SocketFlags
impl Serialize for SocketFlags
Source§impl<'a> TryFrom<SocketFlagsRef<'a>> for SocketFlags
impl<'a> TryFrom<SocketFlagsRef<'a>> for SocketFlags
impl Eq for SocketFlags
impl StructuralPartialEq for SocketFlags
impl VectorWrite<Offset<SocketFlags>> for SocketFlags
impl WriteAs<Offset<SocketFlags>> for SocketFlags
impl WriteAsOffset<SocketFlags> for SocketFlags
impl<T0: WriteAsDefault<bool, bool>, T1: WriteAsDefault<bool, bool>> WriteAsOffset<SocketFlags> for SocketFlagsBuilder<(T0, T1)>
impl WriteAsOptional<Offset<SocketFlags>> for SocketFlags
Auto Trait Implementations§
impl Freeze for SocketFlags
impl RefUnwindSafe for SocketFlags
impl Send for SocketFlags
impl Sync for SocketFlags
impl Unpin for SocketFlags
impl UnwindSafe for SocketFlags
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