Struct ic_kit::RawHandler [−][src]
pub struct RawHandler { /* fields omitted */ }Expand description
A method which uses Rust closures to handle the calls, it accepts every call.
Implementations
Create a raw handler.
pub fn new<T: for<'de> ArgumentDecoder<'de>, R: ArgumentEncoder, F: 'static + Fn(&mut MockContext, T, &Principal, &str) -> CallResult<R>>(
handler: F
) -> Self
pub fn new<T: for<'de> ArgumentDecoder<'de>, R: ArgumentEncoder, F: 'static + Fn(&mut MockContext, T, &Principal, &str) -> CallResult<R>>(
handler: F
) -> Self
Create a new handler.
Trait Implementations
Whatever the handler can handle the given call or not, if this method returns false, we skip this handler and try to find the next handler that can handle the call. Read more