pub trait Pusher: Send + 'static {
type Error: Send + Unpin + 'static;
// Required method
fn push(
&mut self,
range: &ProgressEntry,
content: Bytes,
) -> Result<(), (Self::Error, Bytes)>;
// Provided method
fn flush(&mut self) -> Result<(), Self::Error> { ... }
}Required Associated Types§
Required Methods§
fn push( &mut self, range: &ProgressEntry, content: Bytes, ) -> Result<(), (Self::Error, Bytes)>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".