pub struct CapabilityServerSet<S, C>where
    C: FromServer<S>,
{ /* private fields */ }
Expand description

Allows a server to recognize its own capabilities when passed back to it, and obtain the underlying Server objects associated with them.

Implementations§

Adds a new capability to the set and returns a client backed by it.

Looks up a capability and returns its underlying server object, if found. Fully resolves the capability before looking it up.

Looks up a capability and returns its underlying server object, if found. Does not attempt to resolve the capability first, so you will usually want to call get_resolved_cap() before calling this. The advantage of this method over get_local_server() is that this one is synchronous and borrows self over a shorter span (which can be very important if self is inside a RefCell).

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.