pub struct SimpleDirectoryService<S: ToSocketAddrs<Iter = IntoIter<SocketAddr>> + Send + Sync> { /* private fields */ }
Expand description
Directory service that translates Strings and socket addresses to socket addresses Strings have to be in the format of “127.0.0.1:8080”
Implementations§
Source§impl<S: ToSocketAddrs<Iter = IntoIter<SocketAddr>> + Send + Sync> SimpleDirectoryService<S>
impl<S: ToSocketAddrs<Iter = IntoIter<SocketAddr>> + Send + Sync> SimpleDirectoryService<S>
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SimpleDirectoryService
Trait Implementations§
Source§impl<S: ToSocketAddrs<Iter = IntoIter<SocketAddr>> + Send + Sync, E: HandlerError> DirectoryService<S, E> for SimpleDirectoryService<S>
impl<S: ToSocketAddrs<Iter = IntoIter<SocketAddr>> + Send + Sync, E: HandlerError> DirectoryService<S, E> for SimpleDirectoryService<S>
Auto Trait Implementations§
impl<S> Freeze for SimpleDirectoryService<S>
impl<S> RefUnwindSafe for SimpleDirectoryService<S>where
S: RefUnwindSafe,
impl<S> Send for SimpleDirectoryService<S>
impl<S> Sync for SimpleDirectoryService<S>
impl<S> Unpin for SimpleDirectoryService<S>where
S: Unpin,
impl<S> UnwindSafe for SimpleDirectoryService<S>where
S: 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