pub struct ServiceConfig<T: ServiceState = Unauthenticated> { /* private fields */ }Implementations§
Source§impl ServiceConfig<Unauthenticated>
impl ServiceConfig<Unauthenticated>
pub fn with_resource(resource: Resource) -> ServiceConfig<Unauthenticated>
pub fn host(self, host: &str) -> ServiceConfig<OnlyHost>
pub fn auth(self, auth: ServiceAuth) -> ServiceConfig<OnlyAuth>
Source§impl ServiceConfig<OnlyHost>
impl ServiceConfig<OnlyHost>
pub fn auth(self, auth: ServiceAuth) -> ServiceConfig<Authenticated>
Source§impl ServiceConfig<OnlyAuth>
impl ServiceConfig<OnlyAuth>
pub fn host(self, host: &str) -> ServiceConfig<Authenticated>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ServiceConfig<T>
impl<T> RefUnwindSafe for ServiceConfig<T>where
T: RefUnwindSafe,
impl<T> Send for ServiceConfig<T>where
T: Send,
impl<T> Sync for ServiceConfig<T>where
T: Sync,
impl<T> Unpin for ServiceConfig<T>where
T: Unpin,
impl<T> UnwindSafe for ServiceConfig<T>where
T: 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