pub struct ListenInfo {
pub protocol: Protocol,
pub ip: String,
pub announced_address: Option<String>,
pub port: u16,
pub port_range: Box<PortRange>,
pub flags: Box<SocketFlags>,
pub send_buffer_size: u32,
pub recv_buffer_size: u32,
}
Expand description
The table ListenInfo
in the namespace FBS.Transport
Generated from these locations:
- Table
ListenInfo
in the filefbs/transport.fbs:26
Fields§
§protocol: Protocol
The field protocol
in the table ListenInfo
ip: String
The field ip
in the table ListenInfo
announced_address: Option<String>
The field announced_address
in the table ListenInfo
port: u16
The field port
in the table ListenInfo
port_range: Box<PortRange>
The field port_range
in the table ListenInfo
flags: Box<SocketFlags>
The field flags
in the table ListenInfo
send_buffer_size: u32
The field send_buffer_size
in the table ListenInfo
recv_buffer_size: u32
The field recv_buffer_size
in the table ListenInfo
Implementations§
Source§impl ListenInfo
impl ListenInfo
Sourcepub fn builder() -> ListenInfoBuilder<()>
pub fn builder() -> ListenInfoBuilder<()>
Creates a ListenInfoBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_protocol: impl WriteAsDefault<Protocol, Protocol>, field_ip: impl WriteAs<Offset<str>>, field_announced_address: impl WriteAsOptional<Offset<str>>, field_port: impl WriteAsDefault<u16, u16>, field_port_range: impl WriteAs<Offset<PortRange>>, field_flags: impl WriteAs<Offset<SocketFlags>>, field_send_buffer_size: impl WriteAsDefault<u32, u32>, field_recv_buffer_size: impl WriteAsDefault<u32, u32>, ) -> Offset<Self>
Trait Implementations§
Source§impl Clone for ListenInfo
impl Clone for ListenInfo
Source§fn clone(&self) -> ListenInfo
fn clone(&self) -> ListenInfo
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 ListenInfo
impl Debug for ListenInfo
Source§impl<'de> Deserialize<'de> for ListenInfo
impl<'de> Deserialize<'de> for ListenInfo
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 ListenInfo
impl Hash for ListenInfo
Source§impl Ord for ListenInfo
impl Ord for ListenInfo
Source§fn cmp(&self, other: &ListenInfo) -> Ordering
fn cmp(&self, other: &ListenInfo) -> 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 ListenInfo
impl PartialEq for ListenInfo
Source§impl PartialOrd for ListenInfo
impl PartialOrd for ListenInfo
Source§impl Serialize for ListenInfo
impl Serialize for ListenInfo
Source§impl<'a> TryFrom<ListenInfoRef<'a>> for ListenInfo
impl<'a> TryFrom<ListenInfoRef<'a>> for ListenInfo
impl Eq for ListenInfo
impl StructuralPartialEq for ListenInfo
impl VectorWrite<Offset<ListenInfo>> for ListenInfo
impl WriteAs<Offset<ListenInfo>> for ListenInfo
impl WriteAsOffset<ListenInfo> for ListenInfo
impl<T0: WriteAsDefault<Protocol, Protocol>, T1: WriteAs<Offset<str>>, T2: WriteAsOptional<Offset<str>>, T3: WriteAsDefault<u16, u16>, T4: WriteAs<Offset<PortRange>>, T5: WriteAs<Offset<SocketFlags>>, T6: WriteAsDefault<u32, u32>, T7: WriteAsDefault<u32, u32>> WriteAsOffset<ListenInfo> for ListenInfoBuilder<(T0, T1, T2, T3, T4, T5, T6, T7)>
impl WriteAsOptional<Offset<ListenInfo>> for ListenInfo
Auto Trait Implementations§
impl Freeze for ListenInfo
impl RefUnwindSafe for ListenInfo
impl Send for ListenInfo
impl Sync for ListenInfo
impl Unpin for ListenInfo
impl UnwindSafe for ListenInfo
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