Enum capsules_extra::net::udp::udp_port_table::SocketBindingEntry
source · pub enum SocketBindingEntry {
Port(u16),
Unbound,
}
Expand description
The SocketBindingEntry struct is stored in the PORT_TABLE and conveys what port is bound at the given index if one is bound. If no port is bound, the value stored at that location in the table is Unbound.
Variants§
Trait Implementations§
source§impl Clone for SocketBindingEntry
impl Clone for SocketBindingEntry
source§fn clone(&self) -> SocketBindingEntry
fn clone(&self) -> SocketBindingEntry
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 PartialEq for SocketBindingEntry
impl PartialEq for SocketBindingEntry
source§fn eq(&self, other: &SocketBindingEntry) -> bool
fn eq(&self, other: &SocketBindingEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SocketBindingEntry
impl StructuralPartialEq for SocketBindingEntry
Auto Trait Implementations§
impl Freeze for SocketBindingEntry
impl RefUnwindSafe for SocketBindingEntry
impl Send for SocketBindingEntry
impl Sync for SocketBindingEntry
impl Unpin for SocketBindingEntry
impl UnwindSafe for SocketBindingEntry
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)