pub enum Direction {
Forward,
Reverse,
}
Variants§
Trait Implementations§
source§impl<'prototk> FieldPackHelper<'prototk, message<Direction>> for Direction
impl<'prototk> FieldPackHelper<'prototk, message<Direction>> for Direction
source§fn field_pack_sz(&self, tag: &Tag) -> usize
fn field_pack_sz(&self, tag: &Tag) -> usize
The size of encoding self with tag.
source§fn field_pack(&self, tag: &Tag, out: &mut [u8])
fn field_pack(&self, tag: &Tag, out: &mut [u8])
Pack the tag into the output buffer.
source§impl<'prototk> FieldUnpackHelper<'prototk, message<Direction>> for Direction
impl<'prototk> FieldUnpackHelper<'prototk, message<Direction>> for Direction
source§fn merge_field(&mut self, proto: message<Direction>)
fn merge_field(&mut self, proto: message<Direction>)
Merge the proto into self.
source§impl Ord for Direction
impl Ord for Direction
source§impl Packable for Direction
impl Packable for Direction
source§fn pack_sz(&self) -> usize
fn pack_sz(&self) -> usize
pack_sz
returns the number of bytes required to serialize the Packable object.source§fn pack(&self, buf: &mut [u8])
fn pack(&self, buf: &mut [u8])
pack
fills in the buffer out
with the packed binary representation of the Packable
object. The implementor is responsible to ensure that out
is exactly pack_sz()
bytes
and implementations are encouraged to assert this. Read moresource§fn stream<W>(&self, writer: &mut W) -> Result<usize, Error>where
W: Write,
fn stream<W>(&self, writer: &mut W) -> Result<usize, Error>where
W: Write,
stream
writes the object to the provided writer using the same representation that would
be used in a call to pack
. The implementor is responsible for making sure that the
number of bytes written is exactly equal to the number of required bytes. Read moresource§impl PartialEq for Direction
impl PartialEq for Direction
source§impl PartialOrd for Direction
impl PartialOrd for Direction
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'prototk> Unpackable<'prototk> for Direction
impl<'prototk> Unpackable<'prototk> for Direction
impl Copy for Direction
impl Eq for Direction
impl<'prototk> Message<'prototk> for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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