[−][src]Struct actix::actors::resolver::Resolver
👎 Deprecated since 0.12.0:
Resolver actor is deprecated and will be removed in a future release.
Implementations
impl Resolver
[src]
pub fn new(config: ResolverConfig, options: ResolverOpts) -> Resolver
[src]
👎 Deprecated since 0.12.0:
Resolver actor is deprecated and will be removed in a future release.
Trait Implementations
impl Actor for Resolver
[src]
type Context = Context<Self>
Actor execution context type
pub fn started(&mut self, ctx: &mut Self::Context)
[src]
pub fn stopping(&mut self, ctx: &mut Self::Context) -> Running
[src]
pub fn stopped(&mut self, ctx: &mut Self::Context)
[src]
pub fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
[src]
Self: Actor<Context = Context<Self>>,
pub fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
[src]
Self: Actor<Context = Context<Self>> + Default,
pub fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
[src]
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
pub fn create<F>(f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self,
[src]
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self,
impl Default for Resolver
[src]
impl Handler<Connect> for Resolver
[src]
type Result = ResponseActFuture<Self, Result<TcpStream, ResolverError>>
The type of value that this handler will return. Read more
pub fn handle(&mut self, msg: Connect, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<ConnectAddr> for Resolver
[src]
type Result = ResponseActFuture<Self, Result<TcpStream, ResolverError>>
The type of value that this handler will return. Read more
pub fn handle(
&mut self,
msg: ConnectAddr,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
msg: ConnectAddr,
_: &mut Self::Context
) -> Self::Result
impl Handler<Resolve> for Resolver
[src]
type Result = ResponseActFuture<Self, Result<VecDeque<SocketAddr>, ResolverError>>
The type of value that this handler will return. Read more
pub fn handle(&mut self, msg: Resolve, _: &mut Self::Context) -> Self::Result
[src]
impl Supervised for Resolver
[src]
pub fn restarting(&mut self, ctx: &mut Self::Context)
[src]
impl SystemService for Resolver
[src]
pub fn start_service(sys: &Arbiter) -> Addr<Self>
[src]
pub fn service_started(&mut self, ctx: &mut Context<Self>)
[src]
pub fn from_registry() -> Addr<Self>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Resolver
[src]
impl Send for Resolver
[src]
impl Sync for Resolver
[src]
impl Unpin for Resolver
[src]
impl !UnwindSafe for Resolver
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,