#[non_exhaustive]pub enum GeneratedProtocol {
Tcp,
Udp,
Sctp,
}Expand description
Transport protocol for one generated published port.
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.
Tcp
Transmission Control Protocol.
Udp
User Datagram Protocol.
Sctp
Stream Control Transmission Protocol.
Trait Implementations§
Source§impl Clone for GeneratedProtocol
impl Clone for GeneratedProtocol
Source§fn clone(&self) -> GeneratedProtocol
fn clone(&self) -> GeneratedProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GeneratedProtocol
Source§impl Debug for GeneratedProtocol
impl Debug for GeneratedProtocol
impl Eq for GeneratedProtocol
Source§impl PartialEq for GeneratedProtocol
impl PartialEq for GeneratedProtocol
impl StructuralPartialEq for GeneratedProtocol
Auto Trait Implementations§
impl Freeze for GeneratedProtocol
impl RefUnwindSafe for GeneratedProtocol
impl Send for GeneratedProtocol
impl Sync for GeneratedProtocol
impl Unpin for GeneratedProtocol
impl UnsafeUnpin for GeneratedProtocol
impl UnwindSafe for GeneratedProtocol
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