pub struct NoOpApplication;Expand description
Default no-op application implementation.
Trait Implementations§
Source§impl Application for NoOpApplication
impl Application for NoOpApplication
Source§fn on_create<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_create<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when a session is created. Read more
Source§fn on_logon<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_logon<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called on successful logon. Read more
Source§fn on_logout<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_logout<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called on logout. Read more
Source§fn to_admin<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_message: &'life1 mut OwnedMessage,
_session_id: &'life2 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn to_admin<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_message: &'life1 mut OwnedMessage,
_session_id: &'life2 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Called before sending an admin message. Read more
Source§fn from_admin<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_message: &'life1 RawMessage<'life2>,
_session_id: &'life3 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), RejectReason>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn from_admin<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_message: &'life1 RawMessage<'life2>,
_session_id: &'life3 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), RejectReason>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Called when an admin message is received. Read more
Source§fn to_app<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_message: &'life1 mut OwnedMessage,
_session_id: &'life2 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn to_app<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_message: &'life1 mut OwnedMessage,
_session_id: &'life2 SessionId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Called before sending an application message. Read more
Source§fn from_app<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_message: &'life1 RawMessage<'life2>,
_session_id: &'life3 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), RejectReason>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn from_app<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_message: &'life1 RawMessage<'life2>,
_session_id: &'life3 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), RejectReason>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Called when an application message is received. Read more
Source§impl Debug for NoOpApplication
impl Debug for NoOpApplication
Source§impl Default for NoOpApplication
impl Default for NoOpApplication
Source§fn default() -> NoOpApplication
fn default() -> NoOpApplication
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoOpApplication
impl RefUnwindSafe for NoOpApplication
impl Send for NoOpApplication
impl Sync for NoOpApplication
impl Unpin for NoOpApplication
impl UnwindSafe for NoOpApplication
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