[−][src]Struct kompact::NetworkDispatcher
Network-aware dispatcher for messages to remote actors.
Methods
impl NetworkDispatcher
[src]
pub fn new(notify_ready: Promise<()>) -> Self
[src]
pub fn with_config(cfg: NetworkConfig, notify_ready: Promise<()>) -> Self
[src]
Trait Implementations
impl Dispatcher for NetworkDispatcher
[src]
fn receive(&mut self, env: DispatchEnvelope)
[src]
fn system_path(&mut self) -> SystemPath
[src]
Generates a SystemPath from this dispatcher's configuration This is only possible after the socket is bound and will panic if attempted earlier!
impl Actor for NetworkDispatcher
[src]
fn receive_local(&mut self, sender: ActorRef, msg: Box<dyn Any>)
[src]
fn receive_message(
&mut self,
sender: ActorPath,
ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
sender: ActorPath,
ser_id: u64,
_buf: &mut dyn Buf
)
impl ComponentDefinition for NetworkDispatcher
[src]
fn setup(&mut self, self_component: Arc<Component<Self>>)
[src]
fn execute(&mut self, _max_events: usize, _skip: usize) -> ExecuteResult
[src]
fn ctx_mut(&mut self) -> &mut ComponentContext<Self>
[src]
fn ctx(&self) -> &ComponentContext<Self>
[src]
fn type_name() -> &'static str
[src]
impl Provide<ControlPort> for NetworkDispatcher
[src]
fn handle(&mut self, event: ControlEvent)
[src]
Auto Trait Implementations
impl Send for NetworkDispatcher
impl !Sync for NetworkDispatcher
Blanket Implementations
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,