[−][src]Enum fbthrift_git::simplejson_protocol::SimpleJsonProtocol
Variants
Trait Implementations
impl<F> Clone for SimpleJsonProtocol<F>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F> Copy for SimpleJsonProtocol<F>
[src]
impl<F> Protocol for SimpleJsonProtocol<F> where
F: Framing + 'static,
[src]
F: Framing + 'static,
type Frame = F
Type of the framing implementation
type Sizer = SimpleJsonProtocolSerializer<SizeCounter>
Compute the size of a frame for a given protocol. This can be exact or too large, but must not be too small. Read more
type Serializer = SimpleJsonProtocolSerializer<F::EncBuf>
Serialize into a buffer. The buffer is allocated with the size computed by Sizer, so it must be large enough. Read more
type Deserializer = SimpleJsonProtocolDeserializer<F::DecBuf>
Set up a deserializer from a frame's buffer.
pub const PROTOCOL_ID: ProtocolID
[src]
pub fn serializer<SZ, SER>(
size: SZ,
ser: SER
) -> <Self::Serializer as ProtocolWriter>::Final where
SZ: FnOnce(&mut Self::Sizer),
SER: FnOnce(&mut Self::Serializer),
[src]
size: SZ,
ser: SER
) -> <Self::Serializer as ProtocolWriter>::Final where
SZ: FnOnce(&mut Self::Sizer),
SER: FnOnce(&mut Self::Serializer),
pub fn deserializer(buf: F::DecBuf) -> Self::Deserializer
[src]
pub fn into_buffer(deser: Self::Deserializer) -> F::DecBuf
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for SimpleJsonProtocol<F> where
F: RefUnwindSafe,
[src]
F: RefUnwindSafe,
impl<F> Send for SimpleJsonProtocol<F> where
F: Send,
[src]
F: Send,
impl<F> Sync for SimpleJsonProtocol<F> where
F: Sync,
[src]
F: Sync,
impl<F> Unpin for SimpleJsonProtocol<F> where
F: Unpin,
[src]
F: Unpin,
impl<F> UnwindSafe for SimpleJsonProtocol<F> where
F: UnwindSafe,
[src]
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,