Struct spacegate_kernel::plugins::context::AvailableBackendInst
source · pub struct AvailableBackendInst {
pub name_or_host: String,
pub namespace: Option<String>,
pub port: u16,
pub timeout_ms: Option<u64>,
pub protocol: Option<SgProtocol>,
pub weight: Option<u16>,
}Expand description
Same as SgBackendInst, but it emphasizes that the backend is available for
use in the current request.
Fields§
§name_or_host: String§namespace: Option<String>§port: u16§timeout_ms: Option<u64>§protocol: Option<SgProtocol>§weight: Option<u16>Implementations§
source§impl AvailableBackendInst
impl AvailableBackendInst
pub fn get_base_url(&self) -> String
Trait Implementations§
source§impl Clone for AvailableBackendInst
impl Clone for AvailableBackendInst
source§fn clone(&self) -> AvailableBackendInst
fn clone(&self) -> AvailableBackendInst
Returns a copy 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 moresource§impl Debug for AvailableBackendInst
impl Debug for AvailableBackendInst
source§impl Default for AvailableBackendInst
impl Default for AvailableBackendInst
source§fn default() -> AvailableBackendInst
fn default() -> AvailableBackendInst
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AvailableBackendInst
impl Send for AvailableBackendInst
impl Sync for AvailableBackendInst
impl Unpin for AvailableBackendInst
impl UnwindSafe for AvailableBackendInst
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