Skip to main content

Ior

Struct Ior 

Source
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: String

Repository id of the most derived interface, or empty.

§profiles: Vec<TaggedProfile>

Profiles describing how to reach the object.

Implementations§

Source§

impl Ior

Source

pub fn nil() -> Ior

The nil reference.

Source

pub fn is_nil(&self) -> bool

Whether this is a nil reference (no type id and no profiles).

Source

pub fn iiop_profiles(&self) -> impl Iterator<Item = Result<IiopProfile>>

The IIOP profiles, in order. Other profiles are skipped.

Source

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.

Source

pub fn to_encapsulation(&self, order: ByteOrder) -> Result<Vec<u8>>

Writes the IOR as an encapsulation in byte order order.

Source

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.

Source

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.

Trait Implementations§

Source§

impl CdrDecode for Ior

Source§

fn decode(dec: &mut Decoder<'_>) -> Result<Self>

Reads a value.
Source§

fn decode_vec(len: usize, dec: &mut Decoder<'_>) -> Result<Vec<Self>, Error>

Reads len elements. Overridden for u8 to copy the bytes in one go.
Source§

impl CdrEncode for Ior

Source§

fn encode(&self, enc: &mut Encoder) -> Result<()>

Writes self.
Source§

fn encode_slice(items: &[Self], enc: &mut Encoder) -> Result<(), Error>
where Self: Sized,

Writes the elements of a slice, without a length. Overridden for u8 to copy the bytes in one go.
Source§

impl Clone for Ior

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Ior

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Ior

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Writes the stringified IOR in the host byte order.

Source§

impl Eq for Ior

Source§

impl FromStr for Ior

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Ior>

Parses a string s to return a value of this type. Read more
Source§

impl PartialEq for Ior

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Ior

Auto Trait Implementations§

§

impl Freeze for Ior

§

impl RefUnwindSafe for Ior

§

impl Send for Ior

§

impl Sync for Ior

§

impl Unpin for Ior

§

impl UnsafeUnpin for Ior

§

impl UnwindSafe for Ior

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.