Skip to main content

ClientRequestInfo

Struct ClientRequestInfo 

Source
pub struct ClientRequestInfo<'a> { /* private fields */ }
Expand description

PortableInterceptor::ClientRequestInfo: one request as the client interceptors see it, during one interception point.

Implementations§

Source§

impl<'a> ClientRequestInfo<'a>

Source

pub fn point(&self) -> ClientPoint

The interception point being run.

Source

pub fn request_id(&self) -> u32

request_id: unique among the requests of this ORB in progress (not the GIOP request id).

Source

pub fn operation(&self) -> &str

operation.

Source

pub fn arguments(&self) -> Result<Vec<Parameter>, SystemException>

arguments: only for a DII request (else NO_RESOURCES), in send_request and receive_reply.

Source

pub fn exceptions(&self) -> Result<Vec<TypeCode>, SystemException>

exceptions: the exception list of a DII request.

Source

pub fn contexts(&self) -> Result<Vec<String>, SystemException>

contexts: NO_RESOURCES (rustorb has no context clauses).

Source

pub fn operation_context(&self) -> Result<Vec<String>, SystemException>

operation_context: NO_RESOURCES.

Source

pub fn result(&self) -> Result<Any, SystemException>

result: only in receive_reply of a DII request.

Source

pub fn response_expected(&self) -> bool

response_expected.

Source

pub fn sync_scope(&self) -> i16

sync_scope.

Source

pub fn reply_status(&self) -> Result<i16, SystemException>

reply_status (reply_status).

Source

pub fn forward_reference(&self) -> Result<ObjectRef, SystemException>

forward_reference: in receive_other of a LOCATION_FORWARD.

Source

pub fn get_slot(&self, id: SlotId) -> Result<Any, InvalidSlot>

get_slot: the request’s copy of the slots.

Source

pub fn get_request_service_context( &self, id: u32, ) -> Result<ServiceContext, SystemException>

get_request_service_context: one the interceptors added (the ones rustorb writes itself, such as CodeSets, are not here).

Source

pub fn get_reply_service_context( &self, id: u32, ) -> Result<ServiceContext, SystemException>

get_reply_service_context.

Source

pub fn target(&self) -> &ObjectRef

target: the reference the call was made on.

Source

pub fn effective_target(&self) -> &ObjectRef

effective_target: where the request goes, after forwards.

Source

pub fn effective_profile(&self) -> &TaggedProfile

effective_profile: the profile of the address being tried.

Source

pub fn received_exception(&self) -> Result<Any, SystemException>

received_exception: in receive_exception. A user exception whose TypeCode is not known (anything but a DII request with an exception list) is an Any of UNKNOWN.

Source

pub fn received_exception_id(&self) -> Result<String, SystemException>

received_exception_id.

Source

pub fn exception(&self) -> Option<Exception>

The exception, in receive_exception (rustorb).

Source

pub fn get_effective_component( &self, tag: u32, ) -> Result<TaggedComponent, SystemException>

get_effective_component: the first component with tag in the effective profile (BAD_PARAM if none).

Source

pub fn get_effective_components( &self, tag: u32, ) -> Result<Vec<TaggedComponent>, SystemException>

get_effective_components.

Source

pub fn get_request_policy( &self, policy_type: PolicyType, ) -> Result<Option<PolicyValue>, SystemException>

get_request_policy: the client policy of policy_type in effect (None if none is). INV_POLICY for a type that is not a client policy.

Source

pub fn add_request_service_context( &self, sc: ServiceContext, replace: bool, ) -> Result<(), SystemException>

add_request_service_context: in send_request.

Trait Implementations§

Source§

impl Debug for ClientRequestInfo<'_>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !Freeze for ClientRequestInfo<'a>

§

impl<'a> !RefUnwindSafe for ClientRequestInfo<'a>

§

impl<'a> !Sync for ClientRequestInfo<'a>

§

impl<'a> !UnwindSafe for ClientRequestInfo<'a>

§

impl<'a> Forget for ClientRequestInfo<'a>

§

impl<'a> Send for ClientRequestInfo<'a>

§

impl<'a> Unpin for ClientRequestInfo<'a>

§

impl<'a> UnsafeUnpin for ClientRequestInfo<'a>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, 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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more