Struct fluvio_controlplane_metadata::spu::SpuSpec
source · pub struct SpuSpec {
pub id: SpuId,
pub spu_type: SpuType,
pub public_endpoint: IngressPort,
pub private_endpoint: Endpoint,
pub rack: Option<String>,
pub public_endpoint_local: Option<Endpoint>,
}
Fields§
§id: SpuId
§spu_type: SpuType
§public_endpoint: IngressPort
§private_endpoint: Endpoint
§rack: Option<String>
§public_endpoint_local: Option<Endpoint>
Implementations§
source§impl SpuSpec
impl SpuSpec
pub fn new_public_addr(id: SpuId, port: u16, host: String) -> Self
pub fn new_private_addr(id: SpuId, port: u16, host: String) -> Self
pub fn set_custom(self) -> Self
pub fn private_server_address(&self) -> ServerAddress
pub fn update(&mut self, other: &Self)
Trait Implementations§
source§impl From<CustomSpuSpec> for SpuSpec
impl From<CustomSpuSpec> for SpuSpec
source§fn from(spec: CustomSpuSpec) -> Self
fn from(spec: CustomSpuSpec) -> Self
Converts to this type from the input type.
source§impl From<SpuSpec> for CustomSpuSpec
impl From<SpuSpec> for CustomSpuSpec
source§impl PartialEq for SpuSpec
impl PartialEq for SpuSpec
source§impl SpecExt for SpuSpec
impl SpecExt for SpuSpec
const OBJECT_TYPE: ObjectType = ObjectType::Spu
impl Eq for SpuSpec
impl StructuralPartialEq for SpuSpec
Auto Trait Implementations§
impl Freeze for SpuSpec
impl RefUnwindSafe for SpuSpec
impl Send for SpuSpec
impl Sync for SpuSpec
impl Unpin for SpuSpec
impl UnwindSafe for SpuSpec
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.