pub enum Scheme {
Unix,
Serial,
Tcp,
}Expand description
The transport family an endpoint names. Always compiled (it is grammar, not a
capability) — whether a given variant can actually be dialed depends on the
transport-* features, enforced in dial.
Variants§
Unix
A Unix-domain socket (unix:// / uds://, or a bare path).
Serial
A serial/UART device (serial://).
Tcp
A TCP endpoint (tcp://host:port).
Trait Implementations§
impl Copy for Scheme
impl Eq for Scheme
impl StructuralPartialEq for Scheme
Auto Trait Implementations§
impl Freeze for Scheme
impl RefUnwindSafe for Scheme
impl Send for Scheme
impl Sync for Scheme
impl Unpin for Scheme
impl UnsafeUnpin for Scheme
impl UnwindSafe for Scheme
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