Struct Unimplemented

Source
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

Source§

type ProtocolType = ()

Source§

type DataModelType = ()

Source§

type AsyncTaskData = ()

The private data buffer used by the async buffer. Read more
Source§

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<()>>

Initialize the async task. Read more
Source§

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

The finalization step of an async task. Read more
Source§

fn cleanup(&mut self) -> ServletFuncResult

The cleanup function Read more
Source§

impl SyncServlet for Unimplemented

Source§

type ProtocolType = ()

The type used to represent the protocol. Read more
Source§

type DataModelType = ()

Source§

fn init( &mut self, _args: &[&str], _type_inst: &mut Untyped, ) -> ServletFuncResult

The initialization function. Read more
Source§

fn exec(&mut self, _ti: Untyped) -> ServletFuncResult

The sync execute function. Read more
Source§

fn cleanup(&mut self) -> ServletFuncResult

The cleanup function Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.