Struct cubic_protocol::types::ProtocolJson
source · [−]pub struct ProtocolJson<T> {
pub value: T,
}
Fields
value: T
Implementations
Trait Implementations
sourceimpl<T> From<T> for ProtocolJson<T>
impl<T> From<T> for ProtocolJson<T>
sourceimpl<T: DeserializeOwned> PacketReadable for ProtocolJson<T>
impl<T: DeserializeOwned> PacketReadable for ProtocolJson<T>
fn read<'life0, 'async_trait>(
input: &'life0 mut impl 'async_trait + InputPacketBytes
) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
sourceimpl<T: Serialize + Send + Sync> PacketWritable for ProtocolJson<T>
impl<T: Serialize + Send + Sync> PacketWritable for ProtocolJson<T>
fn write<'life0, 'async_trait>(
self,
output: &'life0 mut impl 'async_trait + OutputPacketBytes
) -> Pin<Box<dyn Future<Output = PacketWritableResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<T> RefUnwindSafe for ProtocolJson<T> where
T: RefUnwindSafe,
impl<T> Send for ProtocolJson<T> where
T: Send,
impl<T> Sync for ProtocolJson<T> where
T: Sync,
impl<T> Unpin for ProtocolJson<T> where
T: Unpin,
impl<T> UnwindSafe for ProtocolJson<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more