pub struct OcpiState { /* private fields */ }Available on crate feature
server only.Expand description
Everything the extractors and handlers share.
Implementations§
Source§impl OcpiState
impl OcpiState
Sourcepub const fn config(&self) -> &ServerConfig
pub const fn config(&self) -> &ServerConfig
The configuration in use.
Sourcepub const fn mounted(&self) -> &MountedModules
pub const fn mounted(&self) -> &MountedModules
The modules and interfaces that were mounted.
Sourcepub const fn version(&self) -> &VersionNumber
pub const fn version(&self) -> &VersionNumber
The OCPI version this router publishes.
Sourcepub fn version_details(&self) -> VersionDetails
pub fn version_details(&self) -> VersionDetails
The version details this server advertises, generated from what was mounted.
Auto Trait Implementations§
impl !RefUnwindSafe for OcpiState
impl !UnwindSafe for OcpiState
impl Freeze for OcpiState
impl Send for OcpiState
impl Sync for OcpiState
impl Unpin for OcpiState
impl UnsafeUnpin for OcpiState
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