pub enum StructuredComponent {
OrbType(OrbType),
CodeSets(CodeSetComponentInfo),
AlternateIiopAddress(AlternateIiopAddress),
Ssl(Ssl),
TlsSecTrans(TlsSecTrans),
CsiSecMechList(CompoundSecMechList),
StreamFormatVersion(StreamFormatVersion),
JavaCodebase(String),
Opaque {
tag: ComponentId,
bytes: Vec<u8>,
},
}Expand description
Structured form for the most important components.
Variants§
OrbType(OrbType)
TAG_ORB_TYPE.
CodeSets(CodeSetComponentInfo)
TAG_CODE_SETS.
AlternateIiopAddress(AlternateIiopAddress)
TAG_ALTERNATE_IIOP_ADDRESS.
Ssl(Ssl)
TAG_SSL_SEC_TRANS.
TlsSecTrans(TlsSecTrans)
TAG_TLS_SEC_TRANS.
CsiSecMechList(CompoundSecMechList)
TAG_CSI_SEC_MECH_LIST = 33 (spec CORBA 3.3 Part 2 §10.5).
StreamFormatVersion(StreamFormatVersion)
TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.
JavaCodebase(String)
TAG_JAVA_CODEBASE (spec §13.6.6.7) — list of codebase URLs.
Opaque
Other tags — opaque encapsulation.
Implementations§
Source§impl StructuredComponent
impl StructuredComponent
Sourcepub fn decode(tag: ComponentId, encap: &[u8]) -> Result<Self, CdrError>
pub fn decode(tag: ComponentId, encap: &[u8]) -> Result<Self, CdrError>
Decodes a component encapsulation into a structured form, as far as the tag is known.
§Errors
CDR decode error in the body.
Sourcepub fn encode_encapsulation(
&self,
endianness: Endianness,
) -> Result<Vec<u8>, CdrError>
pub fn encode_encapsulation( &self, endianness: Endianness, ) -> Result<Vec<u8>, CdrError>
Encodes a structured component into an encapsulation (endianness octet + body).
§Errors
Buffer write error.
Trait Implementations§
Source§impl Clone for StructuredComponent
impl Clone for StructuredComponent
Source§fn clone(&self) -> StructuredComponent
fn clone(&self) -> StructuredComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructuredComponent
impl Debug for StructuredComponent
impl Eq for StructuredComponent
Source§impl PartialEq for StructuredComponent
impl PartialEq for StructuredComponent
impl StructuralPartialEq for StructuredComponent
Auto Trait Implementations§
impl Freeze for StructuredComponent
impl RefUnwindSafe for StructuredComponent
impl Send for StructuredComponent
impl Sync for StructuredComponent
impl Unpin for StructuredComponent
impl UnsafeUnpin for StructuredComponent
impl UnwindSafe for StructuredComponent
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