pub enum Frame<'a> {
Record(&'a [u8]),
FileList(&'a [u8]),
FolderList(&'a [u8]),
FileBranch(FileBranch),
FolderBranch(FolderBranch),
Chunk(&'a [u8]),
Have(HaveMap),
Refused(Refusal),
}Expand description
A frame, read.
Variants§
Record(&'a [u8])
A record: the whole frame.
FileList(&'a [u8])
A file’s whole list.
FolderList(&'a [u8])
A folder’s whole list.
FileBranch(FileBranch)
FolderBranch(FolderBranch)
Chunk(&'a [u8])
A chunk’s bytes.
Have(HaveMap)
Refused(Refusal)
Implementations§
Trait Implementations§
impl<'a> Eq for Frame<'a>
impl<'a> StructuralPartialEq for Frame<'a>
Auto Trait Implementations§
impl<'a> Forget for Frame<'a>
impl<'a> Freeze for Frame<'a>
impl<'a> Move for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnsafeUnpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more