pub enum Record {
Path {
path: Path,
number: u64,
},
Resend {
from: u64,
count: u32,
},
PathRequest {
path: Path,
from: u64,
},
Incomplete,
None,
Bad,
}Expand description
A record at the start of a byte stream on TCP.
Variants§
Path
A path record, from the outlet.
Resend
A resend request, from the inlet.
PathRequest
A path request, from the inlet.
Fields
Incomplete
A record that is cut. The caller reads more bytes.
None
No record of this module.
Bad
A record with a path byte that is not 0 or 1.
Implementations§
Trait Implementations§
impl Copy for Record
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Forget for Record
impl Freeze for Record
impl Move for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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