pub struct TelnetProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CapabilityProvider for TelnetProvider
impl CapabilityProvider for TelnetProvider
Source§fn configure_dispatch(
&self,
dispatcher: Box<dyn Dispatcher>,
) -> Result<(), Box<dyn Error + Send + Sync>>
fn configure_dispatch( &self, dispatcher: Box<dyn Dispatcher>, ) -> Result<(), Box<dyn Error + Send + Sync>>
This function will be called on the provider when the host runtime is ready and has configured a dispatcher. This function is only ever
called once for a capability provider, regardless of the number of actors being managed in the host
Source§fn handle_call(
&self,
actor: &str,
op: &str,
msg: &[u8],
) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>
fn handle_call( &self, actor: &str, op: &str, msg: &[u8], ) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>
Invoked when an actor has requested that a provider perform a given operation
Source§fn stop(&self)
fn stop(&self)
This function is called to let the capability provider know that it is being removed
from the host runtime. This gives the provider an opportunity to clean up any
resources and stop any running threads.
WARNING: do not do anything in this function that can
cause a panic, including attempting to write to STDOUT while the host process is terminating
Source§impl Clone for TelnetProvider
impl Clone for TelnetProvider
Source§fn clone(&self) -> TelnetProvider
fn clone(&self) -> TelnetProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TelnetProvider
impl RefUnwindSafe for TelnetProvider
impl Send for TelnetProvider
impl Sync for TelnetProvider
impl Unpin for TelnetProvider
impl UnwindSafe for TelnetProvider
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