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§
Provided Methods§
Sourcefn is_eof(&self) -> bool
👎Deprecated
fn is_eof(&self) -> bool
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.