Struct Protocol
struct Protocol(_)
Protocol specification used for creating sockets via Socket::new.
This is a newtype wrapper around an integer which provides a nicer API in addition to an injection point for documentation.
This type is freely interconvertible with C's int type, however, if a raw
value needs to be provided.
Implementations
impl Protocol
impl Clone for Protocol
fn clone(self: &Self) -> Protocol
impl Copy for Protocol
impl Debug for crate::Protocol
fn fmt(self: &Self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result
impl Eq for Protocol
impl Freeze for Protocol
impl From for Protocol
fn from(p: c_int) -> Protocol
impl PartialEq for Protocol
fn eq(self: &Self, other: &Protocol) -> bool
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl StructuralPartialEq for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
impl<T> Any for Protocol
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Protocol
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Protocol
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Protocol
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Protocol
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Protocol
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Protocol
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Protocol
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Protocol
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>