pub struct Web5Manager { /* private fields */ }Expand description
Web5Manager: Lightweight coordinator for Web5 functionality following hexagonal architecture Implements ports and adapters pattern for clean interfaces
Implementations§
Source§impl Web5Manager
impl Web5Manager
Sourcepub fn new(config: Web5Config) -> Web5Result<Self>
pub fn new(config: Web5Config) -> Web5Result<Self>
Create a new Web5 manager with the specified configuration
Sourcepub fn did_manager(&self) -> &DIDManager
pub fn did_manager(&self) -> &DIDManager
Access the DID manager component
Sourcepub fn protocol_manager(&self) -> &ProtocolManager
pub fn protocol_manager(&self) -> &ProtocolManager
Access the protocol manager component
Sourcepub fn initialize(&mut self) -> Web5Result<()>
pub fn initialize(&mut self) -> Web5Result<()>
Initialize the Web5 subsystem with default protocols
Sourcepub fn status(&self) -> Web5Result<Web5Status>
pub fn status(&self) -> Web5Result<Web5Status>
Get the system status
Sourcepub fn get_metrics(&self) -> Web5Result<HashMap<String, String>>
pub fn get_metrics(&self) -> Web5Result<HashMap<String, String>>
Get metrics for the Web5 system
Auto Trait Implementations§
impl Freeze for Web5Manager
impl !RefUnwindSafe for Web5Manager
impl Send for Web5Manager
impl Sync for Web5Manager
impl Unpin for Web5Manager
impl !UnwindSafe for Web5Manager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more