pub struct IiopProfile {
pub version: Version,
pub host: String,
pub port: u16,
pub object_key: Vec<u8>,
pub components: Vec<TaggedComponent>,
}Expand description
IIOP::ProfileBody, the body of a TAG_INTERNET_IOP profile.
IIOP 1.0 profiles have no components; 1.1 and later carry a component list. Minor versions above 2 are read like 1.2, and bytes after the components are ignored, as the specification asks for forward compatibility.
Fields§
§version: VersionIIOP version, which bounds the GIOP version a client may use.
host: StringHost name or IP address.
port: u16TCP port.
object_key: Vec<u8>Object key sent in requests.
components: Vec<TaggedComponent>Tagged components (IIOP 1.1 and later).
Implementations§
Source§impl IiopProfile
impl IiopProfile
Sourcepub fn from_tagged_profile(profile: &TaggedProfile) -> Result<IiopProfile>
pub fn from_tagged_profile(profile: &TaggedProfile) -> Result<IiopProfile>
Reads the profile from a TAG_INTERNET_IOP tagged profile.
Sourcepub fn from_encapsulation(data: &[u8]) -> Result<IiopProfile>
pub fn from_encapsulation(data: &[u8]) -> Result<IiopProfile>
Reads the profile from the encapsulated profile body.
Sourcepub fn to_tagged_profile(&self, order: ByteOrder) -> Result<TaggedProfile>
pub fn to_tagged_profile(&self, order: ByteOrder) -> Result<TaggedProfile>
Writes the profile as a TAG_INTERNET_IOP tagged profile whose
encapsulation uses order.
Sourcepub fn to_encapsulation(&self, order: ByteOrder) -> Result<Vec<u8>>
pub fn to_encapsulation(&self, order: ByteOrder) -> Result<Vec<u8>>
Writes the encapsulated profile body.
Fails with Error::ComponentsInIiop1_0 if an IIOP 1.0 profile has
components, since 1.0 cannot carry them.
Sourcepub fn components_with_tag(
&self,
tag: u32,
) -> impl Iterator<Item = &TaggedComponent>
pub fn components_with_tag( &self, tag: u32, ) -> impl Iterator<Item = &TaggedComponent>
The components with tag tag, in order.
Sourcepub fn orb_type(&self) -> Option<Result<u32>>
pub fn orb_type(&self) -> Option<Result<u32>>
The ORB type from the first component_tag::ORB_TYPE component,
such as orb_type::OMNIORB.
Sourcepub fn code_sets(&self) -> Option<Result<CodeSetComponentInfo>>
pub fn code_sets(&self) -> Option<Result<CodeSetComponentInfo>>
The code sets from the first component_tag::CODE_SETS component.
Sourcepub fn alternate_addresses(&self) -> Result<Vec<AlternateIiopAddress>>
pub fn alternate_addresses(&self) -> Result<Vec<AlternateIiopAddress>>
The addresses from every component_tag::ALTERNATE_IIOP_ADDRESS
component.