Struct App
pub struct App(Arc<Sentinel>);Expand description
Registered DLT application.
Only a single application can be registered at a time. Registering a second
app while the first one is still alive will return
Error::AlreadyRegistered.
Tuple Fields§
§0: Arc<Sentinel>Implementations§
§impl App
impl App
pub fn new(app_id: Id, description: Option<&str>) -> Result<Self>
pub fn get() -> Option<Self>
fn impl_get(global: &Option<Weak<Sentinel>>) -> Option<Self>
pub fn log_marker(&self) -> Result<()>
pub fn register_context( &self, context_id: Id, description: Option<&str>, ) -> Result<Context>
pub fn flush(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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