ABIResponse

Trait ABIResponse 

Source
pub trait ABIResponse: Debug {
    type EncodeError: Debug;

    const ORIGIN_TYPE_FOR_FREE: OriginType;

    // Required method
    fn try_into_buffer(self) -> Result<LeakBuffer, Self::EncodeError>;
}

Required Associated Constants§

Source

const ORIGIN_TYPE_FOR_FREE: OriginType

Required Associated Types§

Required Methods§

Source

fn try_into_buffer(self) -> Result<LeakBuffer, Self::EncodeError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ABIResponse for String

Source§

const ORIGIN_TYPE_FOR_FREE: OriginType = OriginType::Vec

Source§

type EncodeError = Infallible

Source§

fn try_into_buffer(self) -> Result<LeakBuffer, Self::EncodeError>

Source§

impl ABIResponse for Vec<u8>

Source§

const ORIGIN_TYPE_FOR_FREE: OriginType = OriginType::Vec

Source§

type EncodeError = Infallible

Source§

fn try_into_buffer(self) -> Result<LeakBuffer, Self::EncodeError>

Implementors§

Source§

impl<T> ABIResponse for FbResponseWriter<T>

Source§

const ORIGIN_TYPE_FOR_FREE: OriginType = OriginType::FlatBuffer

Source§

type EncodeError = Infallible

Source§

impl<T: Message> ABIResponse for PbMessage<T>

Source§

const ORIGIN_TYPE_FOR_FREE: OriginType = OriginType::Vec

Source§

type EncodeError = ProtobufError