pub struct SessionWithEndpointStore<S, U> {
pub endpoint: RwLock<String>,
/* private fields */
}
Available on crate feature
agent
only.Expand description
A store that wraps an underlying store providing authorization token and adds endpoint management functionality.
This struct is intended to be used when creating a SessionClient
.
Fields§
§endpoint: RwLock<String>
Implementations§
Source§impl<S, U> SessionWithEndpointStore<S, U>
impl<S, U> SessionWithEndpointStore<S, U>
pub fn new(inner: S, initial_endpoint: String) -> Self
pub fn get_endpoint(&self) -> String
pub fn update_endpoint(&self, did_doc: &DidDocument)
Trait Implementations§
Source§impl<S, U> AuthorizationProvider for SessionWithEndpointStore<S, U>
impl<S, U> AuthorizationProvider for SessionWithEndpointStore<S, U>
Auto Trait Implementations§
impl<S, U> !Freeze for SessionWithEndpointStore<S, U>
impl<S, U> RefUnwindSafe for SessionWithEndpointStore<S, U>where
S: RefUnwindSafe,
U: RefUnwindSafe,
impl<S, U> Send for SessionWithEndpointStore<S, U>
impl<S, U> Sync for SessionWithEndpointStore<S, U>
impl<S, U> Unpin for SessionWithEndpointStore<S, U>
impl<S, U> UnwindSafe for SessionWithEndpointStore<S, U>where
S: UnwindSafe,
U: UnwindSafe,
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