#[non_exhaustive]pub enum NetworkAccess {
BindTcp,
ConnectTcp,
BindUdp,
ConnectSendUdp,
Tcp,
Udp,
All,
}Expand description
A network access right.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BindTcp
Bind a TCP socket to a local port.
ConnectTcp
Connect a TCP socket to a remote port.
BindUdp
Bind a UDP socket to a local port.
ConnectSendUdp
Set the remote port of a UDP socket, or send datagrams to it.
Tcp
Udp
All
Every network access right.
Trait Implementations§
Source§impl Clone for NetworkAccess
impl Clone for NetworkAccess
impl Copy for NetworkAccess
Source§impl Debug for NetworkAccess
impl Debug for NetworkAccess
Source§impl Display for NetworkAccess
impl Display for NetworkAccess
impl Eq for NetworkAccess
Source§impl Hash for NetworkAccess
impl Hash for NetworkAccess
Source§impl PartialEq for NetworkAccess
impl PartialEq for NetworkAccess
impl StructuralPartialEq for NetworkAccess
Auto Trait Implementations§
impl Freeze for NetworkAccess
impl RefUnwindSafe for NetworkAccess
impl Send for NetworkAccess
impl Sync for NetworkAccess
impl Unpin for NetworkAccess
impl UnsafeUnpin for NetworkAccess
impl UnwindSafe for NetworkAccess
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