pub enum SingleChunkPrefix {
JoinRequest,
}Expand description
Join requests have no clear routing beyond their kind and format.
Variants§
JoinRequest
Kind 36; the path identifies the invite key.
Implementations§
Source§impl SingleChunkPrefix
impl SingleChunkPrefix
Sourcepub fn encode_in(&self, format: FormatVersion) -> Result<Vec<u8>, Error>
pub fn encode_in(&self, format: FormatVersion) -> Result<Vec<u8>, Error>
Encode in the recorded format.
Sourcepub fn encode_chunk(&self, chunk: &[u8]) -> Result<Vec<u8>, Error>
pub fn encode_chunk(&self, chunk: &[u8]) -> Result<Vec<u8>, Error>
Frame one sealed plaintext frame, before its signature.
Sourcepub fn encode_chunk_in(
&self,
format: FormatVersion,
chunk: &[u8],
) -> Result<Vec<u8>, Error>
pub fn encode_chunk_in( &self, format: FormatVersion, chunk: &[u8], ) -> Result<Vec<u8>, Error>
Frame the chunk in the recorded format.
Trait Implementations§
Source§impl Clone for SingleChunkPrefix
impl Clone for SingleChunkPrefix
Source§fn clone(&self) -> SingleChunkPrefix
fn clone(&self) -> SingleChunkPrefix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SingleChunkPrefix
impl Debug for SingleChunkPrefix
Source§impl PartialEq for SingleChunkPrefix
impl PartialEq for SingleChunkPrefix
impl Eq for SingleChunkPrefix
impl StructuralPartialEq for SingleChunkPrefix
Auto Trait Implementations§
impl Freeze for SingleChunkPrefix
impl RefUnwindSafe for SingleChunkPrefix
impl Send for SingleChunkPrefix
impl Sync for SingleChunkPrefix
impl Unpin for SingleChunkPrefix
impl UnsafeUnpin for SingleChunkPrefix
impl UnwindSafe for SingleChunkPrefix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more