pub enum UpstreamTarget {
Url(Url),
Tcp {
host: String,
port: u16,
},
Unix(PathBuf),
}Expand description
Where a transport connector sends traffic.
Variants§
Trait Implementations§
Source§impl Clone for UpstreamTarget
impl Clone for UpstreamTarget
Source§fn clone(&self) -> UpstreamTarget
fn clone(&self) -> UpstreamTarget
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for UpstreamTarget
impl RefUnwindSafe for UpstreamTarget
impl Send for UpstreamTarget
impl Sync for UpstreamTarget
impl Unpin for UpstreamTarget
impl UnsafeUnpin for UpstreamTarget
impl UnwindSafe for UpstreamTarget
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