[−][src]Struct raftlog_protobuf::log::LogPositionEncoder
Encoder for LogPosition
.
Trait Implementations
impl Debug for LogPositionEncoder
[src]
impl Default for LogPositionEncoder
[src]
fn default() -> LogPositionEncoder
[src]
impl Encode for LogPositionEncoder
[src]
type Item = LogPosition
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
[src]
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
[src]
fn is_idle(&self) -> bool
[src]
fn requiring_bytes(&self) -> ByteCount
[src]
impl MessageEncode for LogPositionEncoder
[src]
impl SizedEncode for LogPositionEncoder
[src]
fn exact_requiring_bytes(&self) -> u64
[src]
Auto Trait Implementations
impl RefUnwindSafe for LogPositionEncoder
impl Send for LogPositionEncoder
impl Sync for LogPositionEncoder
impl Unpin for LogPositionEncoder
impl UnwindSafe for LogPositionEncoder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> EncodeExt for T where
T: Encode,
[src]
T: Encode,
fn with_item(item: Self::Item) -> Result<Self, Error> where
Self: Default,
[src]
Self: Default,
fn map_err<E, F>(self, f: F) -> MapErr<Self, E, F> where
F: Fn(Error) -> E,
Error: From<E>,
[src]
F: Fn(Error) -> E,
Error: From<E>,
fn map_from<T, F>(self, f: F) -> MapFrom<Self, T, F> where
F: Fn(T) -> Self::Item,
[src]
F: Fn(T) -> Self::Item,
fn try_map_from<T, E, F>(self, f: F) -> TryMapFrom<Self, T, E, F> where
F: Fn(T) -> Result<Self::Item, E>,
Error: From<E>,
[src]
F: Fn(T) -> Result<Self::Item, E>,
Error: From<E>,
fn optional(self) -> Optional<Self>
[src]
fn max_bytes(self, n: u64) -> MaxBytes<Self>
[src]
fn length(self, n: u64) -> Length<Self>
[src]
fn chain<T>(self, other: T) -> TupleEncoder<(Self, T)> where
T: Encode,
[src]
T: Encode,
fn repeat<I>(self) -> Repeat<Self, I> where
I: Iterator<Item = Self::Item>,
[src]
I: Iterator<Item = Self::Item>,
fn pre_encode(self) -> PreEncode<Self>
[src]
fn slice(self) -> Slice<Self>
[src]
fn last(self, item: Self::Item) -> Last<Self>
[src]
fn encode_into_bytes(&mut self, item: Self::Item) -> Result<Vec<u8>, Error>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IoEncodeExt for T where
T: Encode,
[src]
T: Encode,
fn encode_to_write_buf<B>(&mut self, buf: &mut WriteBuf<B>) -> Result<(), Error> where
B: AsMut<[u8]>,
[src]
B: AsMut<[u8]>,
fn encode_all<W>(&mut self, writer: W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,