Struct dce_cli::protocol::CliProtocol
source · pub struct CliProtocol { /* private fields */ }Implementations§
source§impl CliProtocol
impl CliProtocol
pub fn raw(&self) -> &Vec<String>
pub fn pass(&self) -> &Vec<String>
pub fn args(&self) -> &HashMap<String, String>
pub fn args_mut(&mut self) -> &mut HashMap<String, String>
pub async fn route( self, router: Arc<Router<CustomizedProtocolRawRequest<Self>>>, context_data: HashMap<String, Box<dyn Any + Send>> )
pub fn new(base: usize) -> Self
Trait Implementations§
source§impl Debug for CliProtocol
impl Debug for CliProtocol
source§impl Default for CliProtocol
impl Default for CliProtocol
source§fn default() -> CliProtocol
fn default() -> CliProtocol
Returns the “default value” for a type. Read more
source§impl Into<String> for CliProtocol
impl Into<String> for CliProtocol
source§impl RoutableProtocol for CliProtocol
impl RoutableProtocol for CliProtocol
type Req = Vec<String>
type Resp = String
fn path(&self) -> &str
fn body<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = DceResult<Serialized>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pack_resp(self, serialized: Serialized) -> Self::Resp
fn handle_result( self, (unresponsive, response): (Option<bool>, DceResult<Option<Self::Resp>>) ) -> Option<String>
fn id(&self) -> Option<&str>
fn try_print_err(response: &Result<Option<Self::Resp>, DceErr>)
fn err_into(self, code: isize, message: String) -> Self::Resp
Auto Trait Implementations§
impl RefUnwindSafe for CliProtocol
impl Send for CliProtocol
impl Sync for CliProtocol
impl Unpin for CliProtocol
impl UnwindSafe for CliProtocol
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