pub struct WebDdsRoot {
pub applications: Vec<Application>,
pub clients: Vec<Client>,
}Expand description
Spec §7.3.1 — WebDDS::Root singleton. Manages all objects.
Fields§
§applications: Vec<Application>Alle registrierten Applications.
clients: Vec<Client>Alle registrierten Clients.
Implementations§
Source§impl WebDdsRoot
impl WebDdsRoot
Sourcepub fn create_application(
&mut self,
app: Application,
) -> Result<SessionId, ReturnStatus>
pub fn create_application( &mut self, app: Application, ) -> Result<SessionId, ReturnStatus>
Spec §7.3.1.1 — create_application. Returns
OBJECT_ALREADY_EXISTS if an application with the same name
exists.
§Errors
See ReturnStatus.
Sourcepub fn delete_application(&mut self, name: &str) -> Result<(), ReturnStatus>
pub fn delete_application(&mut self, name: &str) -> Result<(), ReturnStatus>
Sourcepub fn get_applications(&self, expression: &str) -> Vec<&Application>
pub fn get_applications(&self, expression: &str) -> Vec<&Application>
Spec §7.3.1.3 — get_applications with an fnmatch pattern.
expression is a POSIX fnmatch pattern (* = anything,
? = one character). We implement a simplified subset
with the * wildcard.
Trait Implementations§
Source§impl Debug for WebDdsRoot
impl Debug for WebDdsRoot
Source§impl Default for WebDdsRoot
impl Default for WebDdsRoot
Source§fn default() -> WebDdsRoot
fn default() -> WebDdsRoot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebDdsRoot
impl RefUnwindSafe for WebDdsRoot
impl Send for WebDdsRoot
impl Sync for WebDdsRoot
impl Unpin for WebDdsRoot
impl UnsafeUnpin for WebDdsRoot
impl UnwindSafe for WebDdsRoot
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