pub struct SocketBind {
pub family: i32,
pub protocol: i32,
pub port_count: u16,
pub port_min: u16,
}Fields§
§family: i32AF_INET, AF_INET6 or AF_UNSPEC (0).
protocol: i32IPPROTO_TCP, IPPROTO_UDP or 0 for any.
port_count: u160 means any port.
port_min: u16Trait Implementations§
Source§impl Clone for SocketBind
impl Clone for SocketBind
impl Copy for SocketBind
Source§impl Debug for SocketBind
impl Debug for SocketBind
Source§impl From<SocketBind> for Value<'static>
impl From<SocketBind> for Value<'static>
Source§fn from(s: SocketBind) -> Self
fn from(s: SocketBind) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Value<'static>> for SocketBind
impl TryFrom<Value<'static>> for SocketBind
Auto Trait Implementations§
impl Freeze for SocketBind
impl RefUnwindSafe for SocketBind
impl Send for SocketBind
impl Sync for SocketBind
impl Unpin for SocketBind
impl UnsafeUnpin for SocketBind
impl UnwindSafe for SocketBind
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