Enum sandwich::pb::SocketError
pub enum SocketError {
SOCKETERROR_BAD_FD,
SOCKETERROR_CREATION_FAILED,
SOCKETERROR_BAD_NETADDR,
SOCKETERROR_NETADDR_UNKNOWN,
SOCKETERROR_FSTAT_FAILED,
SOCKETERROR_NOT_SOCK,
SOCKETERROR_GETSOCKNAME_FAILED,
SOCKETERROR_SETSOCKOPT_FAILED,
SOCKETERROR_INVALID_AI_FAMILY,
}
Variants§
SOCKETERROR_BAD_FD
SOCKETERROR_CREATION_FAILED
SOCKETERROR_BAD_NETADDR
SOCKETERROR_NETADDR_UNKNOWN
SOCKETERROR_FSTAT_FAILED
SOCKETERROR_NOT_SOCK
SOCKETERROR_GETSOCKNAME_FAILED
SOCKETERROR_SETSOCKOPT_FAILED
SOCKETERROR_INVALID_AI_FAMILY
Trait Implementations§
§impl Clone for SocketError
impl Clone for SocketError
§fn clone(&self) -> SocketError
fn clone(&self) -> SocketError
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 more§impl Debug for SocketError
impl Debug for SocketError
§impl Default for SocketError
impl Default for SocketError
§fn default() -> SocketError
fn default() -> SocketError
Returns the “default value” for a type. Read more
§impl Enum for SocketError
impl Enum for SocketError
§fn from_i32(value: i32) -> Option<SocketError>
fn from_i32(value: i32) -> Option<SocketError>
Try to create an enum from
i32
value.
Return None
if value is unknown.§fn from_str(str: &str) -> Option<SocketError>
fn from_str(str: &str) -> Option<SocketError>
Try to create an enum from
&str
value.
Return None
if str is unknown.§const VALUES: &'static [SocketError] = _
const VALUES: &'static [SocketError] = _
All enum values for enum type.
§impl EnumFull for SocketError
impl EnumFull for SocketError
§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl From<SocketError> for ErrorCode
impl From<SocketError> for ErrorCode
Implements [From<sandwich_proto::ErrorEnum>]
for ErrorCode
.
source§fn from(v: SocketError) -> Self
fn from(v: SocketError) -> Self
Converts to this type from the input type.
source§impl From<SocketError> for ProtoBasedErrorCode
impl From<SocketError> for ProtoBasedErrorCode
Implements [From<sandwich_proto::ErrorEnum>]
for ProtoBasedErrorCode
.
source§fn from(v: SocketError) -> Self
fn from(v: SocketError) -> Self
Converts to this type from the input type.
§impl Hash for SocketError
impl Hash for SocketError
source§impl PartialEq<ProtoBasedErrorCode> for SocketError
impl PartialEq<ProtoBasedErrorCode> for SocketError
Implements comparison operator between ProtoBasedErrorCode
and the current error enum.
source§fn eq(&self, other: &ProtoBasedErrorCode) -> bool
fn eq(&self, other: &ProtoBasedErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<SocketError> for ProtoBasedErrorCode
impl PartialEq<SocketError> for ProtoBasedErrorCode
Implements comparison operator between ProtoBasedErrorCode
and the current error enum.
source§fn eq(&self, other: &SocketError) -> bool
fn eq(&self, other: &SocketError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<SocketError> for SocketError
impl PartialEq<SocketError> for SocketError
§fn eq(&self, other: &SocketError) -> bool
fn eq(&self, other: &SocketError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SocketError
impl Eq for SocketError
impl StructuralEq for SocketError
impl StructuralPartialEq for SocketError
Auto Trait Implementations§
impl RefUnwindSafe for SocketError
impl Send for SocketError
impl Sync for SocketError
impl Unpin for SocketError
impl UnwindSafe for SocketError
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