pub struct ServerCommunicationConfigClient<R>where
R: ServerCommunicationConfigRepository,{
repository: R,
}Expand description
Server communication configuration client
Fields§
§repository: RImplementations§
Source§impl<R> ServerCommunicationConfigClient<R>where
R: ServerCommunicationConfigRepository,
impl<R> ServerCommunicationConfigClient<R>where
R: ServerCommunicationConfigRepository,
Sourcepub fn new(repository: R) -> Self
pub fn new(repository: R) -> Self
Creates a new server communication configuration client
§Arguments
repository- Repository implementation for storing configuration
Sourcepub async fn get_config(
&self,
hostname: String,
) -> Result<ServerCommunicationConfig, R::GetError>
pub async fn get_config( &self, hostname: String, ) -> Result<ServerCommunicationConfig, R::GetError>
Retrieves the server communication configuration for a hostname
Sourcepub async fn needs_bootstrap(&self, hostname: String) -> bool
pub async fn needs_bootstrap(&self, hostname: String) -> bool
Determines if cookie bootstrapping is needed for this hostname
Returns cookies to include in HTTP requests
Auto Trait Implementations§
impl<R> Freeze for ServerCommunicationConfigClient<R>where
R: Freeze,
impl<R> RefUnwindSafe for ServerCommunicationConfigClient<R>where
R: RefUnwindSafe,
impl<R> Send for ServerCommunicationConfigClient<R>
impl<R> Sync for ServerCommunicationConfigClient<R>
impl<R> Unpin for ServerCommunicationConfigClient<R>where
R: Unpin,
impl<R> UnwindSafe for ServerCommunicationConfigClient<R>where
R: 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