pub enum SetMulticastMembershipError {
AddressNotAvailable,
DeviceDoesNotExist,
NoDeviceWithAddress,
NoDeviceAvailable,
GroupAlreadyJoined,
GroupNotJoined,
WrongDevice,
}
Expand description
Error resulting from attempting to change multicast membership settings for a socket.
Variants§
AddressNotAvailable
The provided address does not match the provided device.
DeviceDoesNotExist
The device does not exist.
NoDeviceWithAddress
The provided address does not match any address on the host.
NoDeviceAvailable
No device or address was specified and there is no device with a route to the multicast address.
GroupAlreadyJoined
Tried to join a group again.
GroupNotJoined
Tried to leave an unjoined group.
WrongDevice
The socket is bound to a device that doesn’t match the one specified.
Trait Implementations§
source§impl Clone for SetMulticastMembershipError
impl Clone for SetMulticastMembershipError
source§fn clone(&self) -> SetMulticastMembershipError
fn clone(&self) -> SetMulticastMembershipError
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 moresource§impl Debug for SetMulticastMembershipError
impl Debug for SetMulticastMembershipError
source§impl PartialEq for SetMulticastMembershipError
impl PartialEq for SetMulticastMembershipError
source§fn eq(&self, other: &SetMulticastMembershipError) -> bool
fn eq(&self, other: &SetMulticastMembershipError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SetMulticastMembershipError
impl Eq for SetMulticastMembershipError
impl StructuralPartialEq for SetMulticastMembershipError
Auto Trait Implementations§
impl Freeze for SetMulticastMembershipError
impl RefUnwindSafe for SetMulticastMembershipError
impl Send for SetMulticastMembershipError
impl Sync for SetMulticastMembershipError
impl Unpin for SetMulticastMembershipError
impl UnwindSafe for SetMulticastMembershipError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.