pub struct DynamicServant<T>(pub T);Expand description
A DynamicImplementation as a Servant.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Debug> Debug for DynamicServant<T>
impl<T: Debug> Debug for DynamicServant<T>
Source§impl<T: DynamicImplementation> Servant for DynamicServant<T>
impl<T: DynamicImplementation> Servant for DynamicServant<T>
Source§fn repository_id(&self) -> &str
fn repository_id(&self) -> &str
Repository id of the most derived interface, used as the type id of
the servant’s references and for
_is_a.Source§fn is_a(&self, repository_id: &str) -> bool
fn is_a(&self, repository_id: &str) -> bool
Whether the servant implements the interface
repository_id. The
default only knows repository_id;
IDL:omg.org/CORBA/Object:1.0 is answered by the ORB.Source§fn dispatch(
&self,
operation: &str,
input: &mut InStream<'_>,
reply: &mut ServerReply,
) -> Result<(), SystemException>
fn dispatch( &self, operation: &str, input: &mut InStream<'_>, reply: &mut ServerReply, ) -> Result<(), SystemException>
Runs
operation: reads the in and inout arguments from input
and writes the result to reply. An operation the servant does not
know should return BAD_OPERATION with minor
UNKNOWN_OPERATION, and a user
exception is written with ServerReply::user_exception. Read moreAuto Trait Implementations§
impl<T> Forget for DynamicServant<T>
impl<T> Freeze for DynamicServant<T>where
T: Freeze,
impl<T> RefUnwindSafe for DynamicServant<T>where
T: RefUnwindSafe,
impl<T> Send for DynamicServant<T>where
T: Send,
impl<T> Sync for DynamicServant<T>where
T: Sync,
impl<T> Unpin for DynamicServant<T>where
T: Unpin,
impl<T> UnsafeUnpin for DynamicServant<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for DynamicServant<T>where
T: UnwindSafe,
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