pub struct NamingContext { /* private fields */ }Expand description
A stub for CosNaming::NamingContext, over the one rustorb-idl -brust
generates (crate::idl::cos_naming::NamingContext) with the names of
rustorb_core::name and the errors of NamingError.
Names are given as slices of NameComponent; to_name
makes one from a string such as "app/Echo".
Implementations§
Source§impl NamingContext
impl NamingContext
Sourcepub fn narrow(obj: ObjectRef) -> Result<Option<NamingContext>, SystemException>
pub fn narrow(obj: ObjectRef) -> Result<Option<NamingContext>, SystemException>
Narrows obj to a naming context: None if it is not one. Asks
the object (_is_a) unless the IOR’s type id is the repository id
of NamingContext or NamingContextExt.
Sourcepub fn unchecked_narrow(obj: ObjectRef) -> NamingContext
pub fn unchecked_narrow(obj: ObjectRef) -> NamingContext
Uses obj as a naming context without checking its type.
Sourcepub fn into_object(self) -> ObjectRef
pub fn into_object(self) -> ObjectRef
The object reference.
Sourcepub fn stub(&self) -> &NamingContext
pub fn stub(&self) -> &NamingContext
The generated stub.
Sourcepub fn bind(
&self,
n: &[NameComponent],
obj: &ObjectRef,
) -> Result<(), NamingError>
pub fn bind( &self, n: &[NameComponent], obj: &ObjectRef, ) -> Result<(), NamingError>
bind: binds n to obj. Raises NotFound, CannotProceed,
InvalidName or AlreadyBound.
Sourcepub fn rebind(
&self,
n: &[NameComponent],
obj: &ObjectRef,
) -> Result<(), NamingError>
pub fn rebind( &self, n: &[NameComponent], obj: &ObjectRef, ) -> Result<(), NamingError>
rebind: binds n to obj, replacing an object binding. Raises
NotFound, CannotProceed or InvalidName.
Sourcepub fn bind_context(
&self,
n: &[NameComponent],
nc: &NamingContext,
) -> Result<(), NamingError>
pub fn bind_context( &self, n: &[NameComponent], nc: &NamingContext, ) -> Result<(), NamingError>
bind_context: binds n to the context nc, so that names are
resolved through it. Raises NotFound, CannotProceed,
InvalidName or AlreadyBound.
Sourcepub fn rebind_context(
&self,
n: &[NameComponent],
nc: &NamingContext,
) -> Result<(), NamingError>
pub fn rebind_context( &self, n: &[NameComponent], nc: &NamingContext, ) -> Result<(), NamingError>
rebind_context: binds n to the context nc, replacing a context
binding. Raises NotFound, CannotProceed or InvalidName.
Sourcepub fn resolve(
&self,
n: &[NameComponent],
) -> Result<Option<ObjectRef>, NamingError>
pub fn resolve( &self, n: &[NameComponent], ) -> Result<Option<ObjectRef>, NamingError>
resolve: the object n is bound to (None if it is bound to a
nil reference). Raises NotFound, CannotProceed or
InvalidName.
Sourcepub fn unbind(&self, n: &[NameComponent]) -> Result<(), NamingError>
pub fn unbind(&self, n: &[NameComponent]) -> Result<(), NamingError>
unbind: removes the binding of n. Raises NotFound,
CannotProceed or InvalidName.
Sourcepub fn new_context(&self) -> Result<NamingContext, NamingError>
pub fn new_context(&self) -> Result<NamingContext, NamingError>
new_context: a new context, not bound to any name, in the same
naming service.
Sourcepub fn bind_new_context(
&self,
n: &[NameComponent],
) -> Result<NamingContext, NamingError>
pub fn bind_new_context( &self, n: &[NameComponent], ) -> Result<NamingContext, NamingError>
bind_new_context: creates a context and binds it to n. Raises
NotFound, CannotProceed, InvalidName or AlreadyBound.
Sourcepub fn destroy(&self) -> Result<(), NamingError>
pub fn destroy(&self) -> Result<(), NamingError>
destroy: deletes this context, which must have no bindings (or
NotEmpty is raised). Names bound to it elsewhere are not unbound.
Sourcepub fn list(
&self,
how_many: u32,
) -> Result<(Vec<Binding>, Option<BindingIterator>), NamingError>
pub fn list( &self, how_many: u32, ) -> Result<(Vec<Binding>, Option<BindingIterator>), NamingError>
list: up to how_many bindings of this context, and an iterator
over the rest if there are more.