Skip to main content

ServerRequestInfo

Struct ServerRequestInfo 

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

PortableInterceptor::ServerRequestInfo: one request as the server interceptors see it, during one interception point.

Implementations§

Source§

impl<'a> ServerRequestInfo<'a>

Source

pub fn point(&self) -> ServerPoint

The interception point being run.

Source

pub fn request_id(&self) -> u32

request_id: the GIOP request id (0 for a call within the ORB).

Source

pub fn operation(&self) -> &str

operation.

Source

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

arguments: only for a DSI servant, in send_reply (else NO_RESOURCES).

Source

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

exceptions: NO_RESOURCES (the servant’s exception list is not known).

Source

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

contexts: NO_RESOURCES.

Source

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

operation_context: NO_RESOURCES.

Source

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

result: in send_reply, for a DSI servant.

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: in the send_* points.

Source

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

forward_reference: in send_other.

Source

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

get_slot: the request’s slots.

Source

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

set_slot: what the servant will see in PiCurrent (when set before receive_request).

Source

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

get_request_service_context: any context the client sent.

Source

pub fn request_service_contexts(&self) -> &[ServiceContext]

The contexts the client sent (rustorb).

Source

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

get_reply_service_context: one added for the reply.

Source

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

add_reply_service_context.

Source

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

sending_exception: in send_exception. A user exception a static skeleton wrote is an Any of UNKNOWN; one a DSI servant set is itself.

Source

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

The repository id of the exception, in send_exception (rustorb).

Source

pub fn object_id(&self) -> Result<Vec<u8>, SystemException>

object_id.

Source

pub fn adapter_id(&self) -> Result<Vec<u8>, SystemException>

adapter_id: the POA’s part of the object key.

Source

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

adapter_name: the names of the POAs from the RootPOA down.

Source

pub fn orb_id(&self) -> &str

orb_id (-ORBid).

Source

pub fn server_id(&self) -> &str

server_id (-ORBServerId).

Source

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

target_most_derived_interface: from receive_request on.

Source

pub fn target_is_a(&self, id: &str) -> Result<bool, SystemException>

target_is_a.

Source

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

get_server_policy: a policy of the target’s POA.

Trait Implementations§

Source§

impl Debug for ServerRequestInfo<'_>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

impl<'a> Send for ServerRequestInfo<'a>

§

impl<'a> Unpin for ServerRequestInfo<'a>

§

impl<'a> UnsafeUnpin for ServerRequestInfo<'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