Trait DropNotifyEofSignallable

Source
pub trait DropNotifyEofSignallable {
    // Required method
    fn eof() -> Self;

    // Provided method
    fn is_eof(&self) -> bool { ... }
}
Expand description

Values that can signal EOF

Implemented for Option, which is usually what you want to use.

Required Methods§

Source

fn eof() -> Self

Generate the EOF value

Provided Methods§

Source

fn is_eof(&self) -> bool

👎Deprecated

Does this value indicate EOF?

§Deprecated

This method is deprecated. It should not be called, or defined, in new programs. It is not required by DropNotifyWatchSender. The provided implementation always returns false.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> DropNotifyEofSignallable for Option<T>

Source§

fn eof() -> Self

Source§

fn is_eof(&self) -> bool

👎Deprecated

Implementors§