[][src]Struct unicom::Manager

pub struct Manager { /* fields omitted */ }

Backends manager

Manager holds registered backends and helps create client instances.

Methods

impl Manager[src]

pub fn register(&self, backend: impl Backend + 'static) -> Result<()>[src]

Register backend

pub fn create(&self, url: impl ToUrl) -> Result<BoxedConnector>[src]

Create the backend using URL by probing registered backend types

Trait Implementations

impl Clone for Manager[src]

impl Default for Manager[src]

fn default() -> Self[src]

Create new backends manager

Auto Trait Implementations

impl RefUnwindSafe for Manager

impl !Send for Manager

impl !Sync for Manager

impl Unpin for Manager

impl UnwindSafe for Manager

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.