pub struct RillServer { /* private fields */ }
Expand description
Embedded node.
Implementations§
Source§impl RillServer
impl RillServer
Sourcepub fn new(server_config: Option<ServerConfig>) -> Self
pub fn new(server_config: Option<ServerConfig>) -> Self
Create a new instance of an embedded node.
Trait Implementations§
Source§impl Actor for RillServer
impl Actor for RillServer
Source§impl Eliminated<Broadcaster> for RillServer
impl Eliminated<Broadcaster> for RillServer
Source§impl Eliminated<HttpServer> for RillServer
impl Eliminated<HttpServer> for RillServer
Source§impl InteractionHandler<WaitPrivateEndpoint> for RillServer
impl InteractionHandler<WaitPrivateEndpoint> for RillServer
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_msg: WaitPrivateEndpoint,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<HttpServerLink, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_msg: WaitPrivateEndpoint,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<HttpServerLink, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl InteractionHandler<WaitPublicEndpoint> for RillServer
impl InteractionHandler<WaitPublicEndpoint> for RillServer
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_msg: WaitPublicEndpoint,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<HttpServerLink, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_msg: WaitPublicEndpoint,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<HttpServerLink, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T: Actor> InterruptedBy<T> for RillServer
impl<T: Actor> InterruptedBy<T> for RillServer
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when the
Actor
terminated by another actor. Read moreSource§impl<T: Actor> StartedBy<T> for RillServer
impl<T: Actor> StartedBy<T> for RillServer
Auto Trait Implementations§
impl Freeze for RillServer
impl !RefUnwindSafe for RillServer
impl Send for RillServer
impl Sync for RillServer
impl Unpin for RillServer
impl !UnwindSafe for RillServer
Blanket Implementations§
Source§impl<T, I> ActionHandler<Interact<I>> for Twhere
T: InteractionHandler<I>,
I: Interaction,
impl<T, I> ActionHandler<Interact<I>> for Twhere
T: InteractionHandler<I>,
I: Interaction,
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
input: Interact<I>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
input: Interact<I>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.
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
Source§impl<T, S> InstantActionHandler<Awake<S>> for T
impl<T, S> InstantActionHandler<Awake<S>> for T
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Awake<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Awake<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T, C> InstantActionHandler<Done<C>> for Twhere
T: Eliminated<C>,
C: Actor,
impl<T, C> InstantActionHandler<Done<C>> for Twhere
T: Eliminated<C>,
C: Actor,
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
done: Done<C>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
done: Done<C>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T, S> InstantActionHandler<Interrupt<S>> for Twhere
T: InterruptedBy<S>,
S: Actor,
impl<T, S> InstantActionHandler<Interrupt<S>> for Twhere
T: InterruptedBy<S>,
S: Actor,
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Interrupt<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Interrupt<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.