pub enum SocketTransportProtocol {
Tcp(TcpSocket),
Udp(UdpSocket),
}Expand description
An extension type for fnet_matchers::SocketTransportProtocol.
Variants§
Trait Implementations§
Source§impl Clone for SocketTransportProtocol
impl Clone for SocketTransportProtocol
Source§fn clone(&self) -> SocketTransportProtocol
fn clone(&self) -> SocketTransportProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SocketTransportProtocol
impl Debug for SocketTransportProtocol
Source§impl From<SocketTransportProtocol> for SocketTransportProtocol
impl From<SocketTransportProtocol> for SocketTransportProtocol
Source§fn from(matcher: SocketTransportProtocol) -> Self
fn from(matcher: SocketTransportProtocol) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SocketTransportProtocol
impl PartialEq for SocketTransportProtocol
Source§fn eq(&self, other: &SocketTransportProtocol) -> bool
fn eq(&self, other: &SocketTransportProtocol) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<SocketTransportProtocol> for SocketTransportProtocol
impl TryFrom<SocketTransportProtocol> for SocketTransportProtocol
Source§type Error = SocketTransportProtocolError
type Error = SocketTransportProtocolError
The type returned in the event of a conversion error.
impl Eq for SocketTransportProtocol
impl StructuralPartialEq for SocketTransportProtocol
Auto Trait Implementations§
impl Freeze for SocketTransportProtocol
impl RefUnwindSafe for SocketTransportProtocol
impl Send for SocketTransportProtocol
impl Sync for SocketTransportProtocol
impl Unpin for SocketTransportProtocol
impl UnsafeUnpin for SocketTransportProtocol
impl UnwindSafe for SocketTransportProtocol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.