pub struct Ior {
pub type_id: String,
pub profiles: Vec<TaggedProfile>,
}Expand description
IOP::IOR, an interoperable object reference.
Profiles are kept raw; Ior::iiop_profiles interprets the IIOP ones.
The stringified form (IOR: and the hex encoded encapsulation) is
read with Ior::from_ior_string or FromStr and written with
Ior::to_ior_string or Display, which uses the host
byte order like omniORB.
Fields§
§type_id: StringRepository id of the most derived interface, or empty.
profiles: Vec<TaggedProfile>Profiles describing how to reach the object.
Implementations§
Source§impl Ior
impl Ior
Sourcepub fn iiop_profiles(&self) -> impl Iterator<Item = Result<IiopProfile>>
pub fn iiop_profiles(&self) -> impl Iterator<Item = Result<IiopProfile>>
The IIOP profiles, in order. Other profiles are skipped.
Sourcepub fn from_encapsulation(data: &[u8]) -> Result<Ior>
pub fn from_encapsulation(data: &[u8]) -> Result<Ior>
Reads an IOR from an encapsulation, the binary form behind a stringified IOR. Bytes after the IOR are ignored.
Sourcepub fn to_encapsulation(&self, order: ByteOrder) -> Result<Vec<u8>>
pub fn to_encapsulation(&self, order: ByteOrder) -> Result<Vec<u8>>
Writes the IOR as an encapsulation in byte order order.
Sourcepub fn from_ior_string(s: &str) -> Result<Ior>
pub fn from_ior_string(s: &str) -> Result<Ior>
Parses a stringified IOR: IOR: followed by an even number of hex
digits. The prefix and the digits may be in either case, and
whitespace around the string (such as a trailing newline in a file)
is ignored.
Sourcepub fn to_ior_string(&self, order: ByteOrder) -> Result<String>
pub fn to_ior_string(&self, order: ByteOrder) -> Result<String>
Writes the stringified IOR with lower case hex digits, encoding the
IOR in byte order order.