pub struct Upstream {
pub label: CityLabel,
pub address: String,
pub token_digest: Option<B3Hash>,
}Expand description
One upstream connection’s settings. No plaintext token: same discipline
as ServeConfig, for the same reason.
Fields§
§label: CityLabel§address: StringWhere to reach it, as the operator typed it. Reachability is the transport’s problem, not this module’s.
token_digest: Option<B3Hash>None when the upstream binds loopback and needs no pairing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Upstream
impl RefUnwindSafe for Upstream
impl Send for Upstream
impl Sync for Upstream
impl Unpin for Upstream
impl UnsafeUnpin for Upstream
impl UnwindSafe for Upstream
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