Trait scabbard::protos::IntoBytes [−][src]
pub trait IntoBytes<ViaProtocol>: Sized { fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>; }
Convert to bytes from a native struct, via the given protocol.
Required methods
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
[src]
Implementors
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]