pub struct ConnectOptions { /* private fields */ }Expand description
What a connection declares and how it answers the server.
Implementations§
Source§impl ConnectOptions
impl ConnectOptions
Sourcepub const fn declaring(self, capabilities: CapabilitySet) -> Self
pub const fn declaring(self, capabilities: CapabilitySet) -> Self
Declares capabilities to the server.
A server asks for sampling, elicitation or roots only when the client declared them, so declare exactly what the handler can answer.
Authenticates to the server through auth.
For an OAuth-protected server, pass an
OAuthAuthorizer.
Sourcepub fn answering(self, handler: Arc<dyn ServerRequestHandler>) -> Self
pub fn answering(self, handler: Arc<dyn ServerRequestHandler>) -> Self
Answers the server’s requests through handler.
Trait Implementations§
Source§impl Clone for ConnectOptions
impl Clone for ConnectOptions
Source§impl Debug for ConnectOptions
impl Debug for ConnectOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectOptions
impl !UnwindSafe for ConnectOptions
impl Freeze for ConnectOptions
impl Send for ConnectOptions
impl Sync for ConnectOptions
impl Unpin for ConnectOptions
impl UnsafeUnpin for ConnectOptions
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