pub struct ServerRequest { /* private fields */ }Expand description
CORBA::ServerRequest: a request to a DynamicImplementation.
It owns what it needs of the request, so a binding can keep it while it calls into its language.
Implementations§
Source§impl ServerRequest
impl ServerRequest
Sourcepub fn new(
operation: &str,
input: &InStream<'_>,
) -> Result<ServerRequest, SystemException>
pub fn new( operation: &str, input: &InStream<'_>, ) -> Result<ServerRequest, SystemException>
The request for operation whose arguments input (the stream a
servant’s dispatch gets, nothing read from it
yet) holds.
pub fn operation(&self) -> &str
Sourcepub fn arguments(
&mut self,
parameters: Vec<NamedValue>,
) -> Result<&mut [NamedValue], SystemException>
pub fn arguments( &mut self, parameters: Vec<NamedValue>, ) -> Result<&mut [NamedValue], SystemException>
Reads the in and inout arguments into parameters (whose
TypeCodes and modes describe the operation’s parameters, in order)
and keeps them; the servant then sets the out and inout values
in the returned slice (or later in
parameters_mut). Called once:
again is BAD_INV_ORDER. Arguments that do not match the types are
MARSHAL, completed no.
Sourcepub fn parameters_mut(&mut self) -> Option<&mut [NamedValue]>
pub fn parameters_mut(&mut self) -> Option<&mut [NamedValue]>
The parameters given to arguments.
Sourcepub fn set_result(&mut self, value: Any) -> Result<(), SystemException>
pub fn set_result(&mut self, value: Any) -> Result<(), SystemException>
Sets the return value (for an operation with a void result, an
Any of type void, or none at all). BAD_INV_ORDER before
arguments or after
set_exception.
Sourcepub fn set_exception(&mut self, value: Any) -> Result<(), SystemException>
pub fn set_exception(&mut self, value: Any) -> Result<(), SystemException>
Makes the reply the user exception value (an Any of a tk_except
TypeCode; another is BAD_PARAM). A system exception is returned
from DynamicImplementation::invoke instead.
Sourcepub fn write_reply(self, reply: &mut ServerReply) -> Result<(), SystemException>
pub fn write_reply(self, reply: &mut ServerReply) -> Result<(), SystemException>
Writes the reply: the user exception, or the return value and the
out and inout arguments in order. A value that does not fit its
type (an out argument left without a value, say) is BAD_PARAM.