pub struct Unimplemented {}
Expand description
The placeholder for a servlet that is not implemented
To implement bootstrap trait, a type needs to give both AsyncServletType
and SyncServletType
However, not all servlet supports the both mode. This placeholder can be used when the servlet
doesn’t support the mode.
Trait Implementations§
Source§impl AsyncServlet for Unimplemented
impl AsyncServlet for Unimplemented
type ProtocolType = ()
type DataModelType = ()
Source§type AsyncTaskData = ()
type AsyncTaskData = ()
The private data buffer used by the async buffer. Read more
Source§fn init(&mut self, _args: &[&str], _type_inst: &mut ()) -> ServletFuncResult
fn init(&mut self, _args: &[&str], _type_inst: &mut ()) -> ServletFuncResult
The initialization function. Read more
Source§fn async_init(&mut self, _handle: &AsyncTaskHandle, _ti: ()) -> Option<Box<()>>
fn async_init(&mut self, _handle: &AsyncTaskHandle, _ti: ()) -> Option<Box<()>>
Initialize the async task. Read more
Source§fn async_exec(
_handle: &AsyncTaskHandle,
_task_data: &mut Self::AsyncTaskData,
) -> ServletFuncResult
fn async_exec( _handle: &AsyncTaskHandle, _task_data: &mut Self::AsyncTaskData, ) -> ServletFuncResult
Run the execution task. Read more
Source§fn async_cleanup(
&mut self,
_handle: &AsyncTaskHandle,
_task_data: &mut Self::AsyncTaskData,
_ti: (),
) -> ServletFuncResult
fn async_cleanup( &mut self, _handle: &AsyncTaskHandle, _task_data: &mut Self::AsyncTaskData, _ti: (), ) -> ServletFuncResult
The finalization step of an async task. Read more
Source§fn cleanup(&mut self) -> ServletFuncResult
fn cleanup(&mut self) -> ServletFuncResult
The cleanup function Read more
Source§impl SyncServlet for Unimplemented
impl SyncServlet for Unimplemented
Source§type ProtocolType = ()
type ProtocolType = ()
The type used to represent the protocol. Read more
type DataModelType = ()
Source§fn init(
&mut self,
_args: &[&str],
_type_inst: &mut Untyped,
) -> ServletFuncResult
fn init( &mut self, _args: &[&str], _type_inst: &mut Untyped, ) -> ServletFuncResult
The initialization function. Read more
Source§fn cleanup(&mut self) -> ServletFuncResult
fn cleanup(&mut self) -> ServletFuncResult
The cleanup function Read more
Auto Trait Implementations§
impl Freeze for Unimplemented
impl RefUnwindSafe for Unimplemented
impl Send for Unimplemented
impl Sync for Unimplemented
impl Unpin for Unimplemented
impl UnwindSafe for Unimplemented
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