-
SinkWrite::write
no longer return a Result, instead it returns anOption<I>
containing the item that had attempted to be sent if the sink is closing or closed.Before:
self.sink.write(data).unwrap();
After:
let _ = self.sink.write(data);
actix
no longer re-exports itself inactix::prelude
to avoid conflicts with 2018 editions. Please access it through yourextern crate actix
import when necessary
trust-dns-resolver
dependency was bumped to version 0.10.0. If you use a custom resolver, you will need to switch yourResolverConfig
andResolverOpts
totrust-dns-resolver
0.10.0 instead of 0.9.1.
-
Addr
get refactored.Syn
andUnsync
removed. all addresses areSyn
now, onlyAddr<Actor>
exists -
Arbiter
usestokio::runtime::current_thread
-
Arbiter::arbiter()
renamed toArbiter::current()
-
Arbiter::handle()
get removed useArbiter::spawn()
instead or you can sendExecute
message to theSystem
. -
Arbiter::system_arbiter()
get removed useSystem::arbiter()
instead. -
Use
actix::actors::resolver
instead ofactix::actors::resolver::{Connect, ConnectAddr, Connector, ConnectorError, Resolve};
-
actix::actors::resolver::Connector
renamed toactix::actors::resolver::Resolver
-
actix::actors::resolver::ConnectorError
renamed toactix::actors::resolver::ResolverError