Skip to main content

McrxError

Enum McrxError 

Source
pub enum McrxError {
Show 34 variants InvalidDestinationPort, InvalidMulticastGroup, InvalidSourceAddress, InvalidIpv6SsmGroup, SourceAddressFamilyMismatch, InterfaceAddressFamilyMismatch, InvalidInterfaceIndex, InterfaceIndexRequiresIpv6, DuplicateSubscription, SubscriptionNotFound, SubscriptionNotJoined, SubscriptionAlreadyJoined, SocketCreateFailed(Error), SocketOptionFailed(Error), SocketBindFailed(Error), RawSocketCreateFailed(Error), RawSocketBindFailed(Error), RawPacketReceiveUnsupported(String), Ipv6NotYetImplemented, SocketLocalAddrFailed(Error), SocketIoctlFailed(Error), ExistingSocketAddressFamilyMismatch, ExistingSocketPortMismatch { expected: u16, actual: u16, }, MulticastJoinFailed(Error), MulticastLeaveFailed(Error), SourceSpecificMulticastUnsupported, Ipv6SourceSpecificMulticastRequiresInterface, Ipv6SourceSpecificMulticastNotYetImplemented, InterfaceProbeBindFailed(Error), InterfaceProbeConnectFailed(Error), InterfaceProbeLocalAddrFailed(Error), InterfaceDiscoveryFailed(String), NonIpSocketAddress, ReceiveFailed(Error),
}
Expand description

Errors returned by the multicast receiver core.

Variants§

§

InvalidDestinationPort

The configured destination port is invalid.

§

InvalidMulticastGroup

The configured group address is not a valid multicast IP address.

§

InvalidSourceAddress

The configured SSM source address is invalid.

§

InvalidIpv6SsmGroup

The configured IPv6 SSM group is not in the IPv6 SSM range.

§

SourceAddressFamilyMismatch

The configured SSM source address family does not match the group family.

§

InterfaceAddressFamilyMismatch

The configured interface address family does not match the group family.

§

InvalidInterfaceIndex

The configured interface index is invalid.

§

InterfaceIndexRequiresIpv6

The configured interface index is only valid for IPv6 subscriptions.

§

DuplicateSubscription

A subscription with the same configuration already exists.

§

SubscriptionNotFound

No subscription with the requested ID exists.

§

SubscriptionNotJoined

The subscription is not currently joined to its multicast group.

§

SubscriptionAlreadyJoined

The subscription is already joined to its multicast group.

§

SocketCreateFailed(Error)

Creating the UDP socket failed.

§

SocketOptionFailed(Error)

Setting a socket option failed.

§

SocketBindFailed(Error)

Binding the UDP socket failed.

§

RawSocketCreateFailed(Error)

Creating the raw receive socket failed.

§

RawSocketBindFailed(Error)

Binding the raw receive socket failed.

§

RawPacketReceiveUnsupported(String)

Raw multicast receive is not supported on this platform in this build.

§

Ipv6NotYetImplemented

The requested IPv6 functionality is not implemented yet.

§

SocketLocalAddrFailed(Error)

Reading the local address of an existing socket failed.

§

SocketIoctlFailed(Error)

Looking up a socket extension function failed.

§

ExistingSocketAddressFamilyMismatch

The provided existing socket family does not match the subscription configuration.

§

ExistingSocketPortMismatch

The provided existing socket is bound to a different UDP port than the subscription.

Fields

§expected: u16
§actual: u16
§

MulticastJoinFailed(Error)

Joining a multicast group failed.

§

MulticastLeaveFailed(Error)

Leaving a multicast group failed.

§

SourceSpecificMulticastUnsupported

Source-specific multicast is not supported on this platform.

§

Ipv6SourceSpecificMulticastRequiresInterface

IPv6 source-specific multicast requires explicit interface selection.

§

Ipv6SourceSpecificMulticastNotYetImplemented

IPv6 source-specific multicast has not been wired into the receiver yet.

§

InterfaceProbeBindFailed(Error)

Binding the interface probe socket failed.

§

InterfaceProbeConnectFailed(Error)

Connecting the interface probe socket failed.

§

InterfaceProbeLocalAddrFailed(Error)

Reading the local address from the interface probe socket failed.

§

InterfaceDiscoveryFailed(String)

Discovering the local network interface failed.

§

NonIpSocketAddress

The received packet came from a non-IP socket address.

§

ReceiveFailed(Error)

Receiving a packet failed.

Trait Implementations§

Source§

impl Debug for McrxError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for McrxError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for McrxError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.